[Mesa-users] Compiling MESA error
Aaron Dotter
aaron.dotter at gmail.com
Tue May 12 22:18:05 EDT 2020
>
> One last thing, before, I used the surface variables, like Tsurf, Rsurf
> and stuff, but now, I want to use the photosphere variables, but summoning
> s% Teff will not work, as the other routines says.
> So, in that case, how can I use the Teff from another way?
>
The comments in other_wind.f90 say:
! Note that your routine will be called before many star variables
have been set.
! If you rely on these, you should call the star_set_vars_in_part1
routine from star_lib
! to ensure that they are set.
and then
! NOTE: surface is outermost cell. not necessarily at photosphere.
! NOTE: don't assume that vars are set at this point.
! so if you want values other than those given as args,
! you should use values from s% xh(:,:) and s% xa(:,:) only.
! rather than things like s% Teff or s% lnT(:) which have not been
set yet.
Did you try calling star_set_vars_in_part1 before trying to access s% Teff?
>
> El mar., 12 may. 2020 a las 21:22, Josiah Schwab (<jwschwab at ucsc.edu>)
> escribió:
>
>>
>>> That's weird, I already changed it, but it still doesn't work: (Here is
>>> my run_star_extras again)
>>> 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/rodrigo/mesa-r12778/include -c ../src/run_star_extras.f
>>> ../src/run_star_extras.f:67:26:
>>>
>>> 67 | s% other_wind => my_wind
>>> | 1
>>> Error: Interface mismatch in procedure pointer assignment at (1): INTENT
>>> mismatch in argument 'x'
>>> make: *** [/home/rodrigo/mesa-r12778/star/work_standard_makefile:39:
>>> run_star_extras.o] Error 1
>>>
>>
>> Please keep mesa-users on your replies.
>>
>> As indicated by the error message, and shown in the example, the
>> variables X,Y,Z must have intent(in).
>>
>> Josiah
>>
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20200512/996ee4ff/attachment.htm>
More information about the Mesa-users
mailing list