[Mesa-users] Error while editing "run_stars_extra"
Francis Timmes
fxt44 at mac.com
Sat Apr 17 17:34:09 UTC 2021
one suggestion is to start with a 15140 compatible run_star_extras.f90.
% cp -r $MESA_DIR/star/work tutorial
% cd tutorial
% ./mk
now start adding one physics piece at a time from your r12778 run_star_extras.f
to the 15140 tutorial/src/run_star_extras.f90. ./clean and ./mk often to
check that it compiles after adding each piece.
fxt
> On Apr 17, 2021, at 12:00 AM, Ebrahim Hassani via Mesa-users <mesa-users at lists.mesastar.org> wrote:
>
> Dear Mesa users
>
> I had edited the run_star_extras.f file in MESA-r12778 to include a new source of energy that comes from dark matter particles annihilation inside a star. it worked without any problem in MESA-r12778. But When I decided to use the code in MESA-r15140 it gave me the bellow error message:
>
> gfortran -fopenmp -o ../star run_star_extras.o run_star.o run.o -L/home/hassani/mesa-r15140/lib -lstar -lgyre -lionization -latm -lcolors -lstar_data -lnet -leos -lkap -lrates -lneu -lchem -linterp_2d -linterp_1d -lnum -lauto_diff -lmtx -lconst -lmath -lutils `mesasdk_crmath_link` `mesasdk_lapack95_link` `mesasdk_lapack_link` `mesasdk_blas_link` `mesasdk_hdf5_link` `mesasdk_pgplot_link` -lz
> /usr/bin/ld: run_star.o:(.data+0x0): multiple definition of `__BLNK__'; run_star_extras.o:(.data+0x20): first defined here
> collect2: error: ld returned 1 exit status
> make: *** [/home/hassani/mesa-r15140/star/work_standard_makefile:23: star] Error 1
>
> The attached files are the run_stars_extra files that I used in MESA-r12778 and MESA-r15140.
>
> Would you please help me know what might be the reason for the error?
> It is worth mentioning that I am using MESA in Linux-ubuntu-20.04.
>
> Best regards
> Ebrahim Hassani
>
> <run_star_extras_15140.f90><run_star_extras_12778.f>_______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
More information about the Mesa-users
mailing list