[Mesa-users] problem with ./mk
Alex Serebryanskiy
aserebryanskiy at yahoo.com
Thu Dec 17 08:01:36 EST 2020
Dear Warrick,
Thanks for your reply and suggestions. Yes, I changed .f to .f90 and then following your instruction I also changed the way subroutines are calling.But then other problems appeared. So, I decided to roll back to version r12778 keeping r15140 intact for future. And now everything is working fine, as intended. best regards,
Alex
===========================Aleksander Serebryanskiy, PhDFesenkov Astrophysical Institute,Observatory 23, 050020 Almaty, Kazakhstan
tel: 8(747)9393892e-mail: alex at aphi.kz, aserebryanskiy at yahoo.com
On Wednesday, December 16, 2020, 04:02:00 PM GMT+6, Warrick Ball <w.h.ball at bham.ac.uk> wrote:
Hi Alex,
I haven't watched the full video but from the first minute or two I see it's based on MESA r12778. Your errors all appear to be because of things that changed between r12778 and r15140.
The second item in the changelist for r15140 [1] is about file suffixes changing from `.f` to `.f90`, so you'll need to make those changes.
The errors that you're getting also imply that `run_star_extras.f90` was copied from a test suite case, which includes calls to routines that the developers use for internal testing. You probably want to remove those.
If, for whatever reason, you really want to keep those calls, you need to update them to pass the `star_info` pointer (usually in the variable `s`) instead of the integer `id`. You can look at `star/job/test_suite_extras.inc` to see the source code for those subroutines.
Cheers,
Warrick
[1] https://docs.mesastar.org/en/latest/changelog.html#some-file-suffixes-changed-to-f90
____________
Warrick Ball
Postdoc, School of Physics and Astronomy
University of Birmingham, Edgbaston, Birmingham B15 2TT
W.H.Ball at bham.ac.uk
+44 (0)121 414 4552
On Wed, 16 Dec 2020, mesa-users at lists.mesastar.org wrote:
> Dear MESA users,
>
> I'm trying to follow "Using pgstar for your MESA project - 2020 edition" (https://www.youtube.com/watch?v=JZFa4WURztI)
> But when I run ./mk I encountered the following:
>
> -----------------------------------------------------------
> ./mk
> gfortran -Wno-uninitialized -fno-range-check -fmax-errors=7 -fprotect-parens -fno-sign-zero -fbacktrace -ggdb -finit-real=snan -fopenmp -fbounds-check -Wuninitialized -Warray-bounds -ggdb -ffree-form -ffree-line-length-none -x
> f95-cpp-input -I/home/alex/Soft/MESA/mesa-r15140/include -I../src -c ../src/run_star_extras.f
> ../src/run_star_extras.f:78:47:
>
> 78 | call test_suite_after_evolve(id, ierr)
> | 1
> Error: Type mismatch in argument 's' at (1); passed INTEGER(4) to TYPE(star_info)
> test_suite_extras.inc:45:14:
>
> Error: Function 'safe_log10' at (1) has no IMPLICIT type
> ../src/run_star_extras.f90:66:51:
>
> 66 | call test_suite_startup(id, restart, ierr)
> | 1
> Error: Type mismatch in argument 's' at (1); passed INTEGER(4) to TYPE(star_info)
> /home/alex/Soft/MESA/mesa-r15140/star/work_standard_makefile:39: recipe for target 'run_star_extras.o' failed
> make: *** [run_star_extras.o] Error 1
>
> FAILED
> ---------------------------------------------------------
>
> I'm using MESA 15140 and mesasdk 12778. All tutorials and test suites went smoothly.
> Also, there are no *.f90 files in "src" folder but only *f. So, f95-cpp-input change to f77-cpp-input does not help either.
>
> Thank you,
>
> Alex
>
> ===========================
> Aleksander Serebryanskiy, PhD
> Fesenkov Astrophysical Institute,
> Observatory 23, 050020 Almaty, Kazakhstan
> tel: 8(747)9393892
> e-mail: alex at aphi.kz, aserebryanskiy at yahoo.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20201217/00241140/attachment.htm>
More information about the Mesa-users
mailing list