[mesa-users] init_and_alloc
Aaron Dotter
aaron.dotter at gmail.com
Wed Jun 4 07:57:07 EDT 2014
Hi Ehsan,
Hmm, looks to me that your run_star_extras modifies includes its own
"do_run" which builds on run_star_support. Revision 6208 changes the names
of several of the routines and you'll have to do the same if you want to
work with this revision. For example, comparing public/star_lib.f from
5329 to 6208 I see that
subroutine init_and_alloc
is now
integer function alloc_star
and star_shutdown is now starlib_shutdown.
That should get you started. Have fun tracking down the rest of the
changes!
Aaron
On Wed, Jun 4, 2014 at 9:37 PM, Ehsan Moravveji <e.moravveji at gmail.com>
wrote:
> Thanks Aaron,
> Here is the error:
> gfortran -fno-range-check -fmax-errors=100 -fprotect-parens
> -fno-sign-zero -fopenmp -fbounds-check -Wuninitialized -Warray-bounds -g
> -ffree-form -x f95-cpp-input -I/Users/ehsan/programs/mesa-6208/include
> -I/Applications/mesasdk/include -c ../src/run_star_extras.f
> ../src/run_star_extras.f: In function 'do_run':
> ../src/run_star_extras.f:148:0: warning: 's' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> call init_and_alloc(id, s, ierr)
> ^
> gfortran -fno-range-check -fmax-errors=100 -fprotect-parens
> -fno-sign-zero -fopenmp -fbounds-check -Wuninitialized -Warray-bounds -g
> -ffree-form -x f95-cpp-input -I/Users/ehsan/programs/mesa-6208/include
> -I/Applications/mesasdk/include -c
> /Users/ehsan/programs/mesa-6208/star/job/run_star.f
> gfortran -fno-range-check -fmax-errors=100 -fprotect-parens
> -fno-sign-zero -fopenmp -fbounds-check -Wuninitialized -Warray-bounds -g
> -ffree-form -x f95-cpp-input -I/Users/ehsan/programs/mesa-6208/include
> -I/Applications/mesasdk/include -c ../src/run.f
> gfortran -fopenmp -o ../mesa_interactive graco_support.o run_star_extras.o
> run_star.o run.o -L/Users/ehsan/programs/mesa-6208/lib -lstar -lionization
> -latm -lcolors -lmlt -lnse -lnet -leos -lkap -lrates -lneu -lchem
> -linterp_2d -linterp_1d -lnum -lf2crlibm -lcrlibm -lmtx -lconst -lutils
> -lmesaklu `mesasdk_lapack_link` `mesasdk_blas_link` `mesasdk_pgplot_link`
> `mesasdk_se_link`
> Undefined symbols for architecture x86_64:
> "_init_and_alloc_", referenced from:
> ___run_star_extras_MOD_do_run in run_star_extras.o
> "_star_shutdown_", referenced from:
> ___run_star_extras_MOD_do_run in run_star_extras.o
> ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
> make: *** [mesa_interactive] Error 1
>
> FAILED
>
> I have also attached the run_star_extras.f
>
> Thanks for your support
>
> Ehsan.
>
>
>
>
> I have difficulty compiling my rather old run_star_extras with the last
>> official version, and digging into the users email archives did not help at
>> all.
>>
>
> Please describe the difficulty compiling and include the errors from the
> compiler.
>
> Thanks,
> Aaron
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20140604/e250e541/attachment.html>
More information about the Mesa-users
mailing list