GYRE/MSA question

General discussion of all things GYRE-related (e.g., results, talks, ideas, tips)
Post Reply
shashi
Posts: 3
Joined: Wed Mar 14, 2018 11:21 am

GYRE/MSA question

Post by shashi » Wed Mar 14, 2018 4:55 pm

Hi, I have MESA (the latest version) installed and it works well. I tried installing GYRE standalone. And after setting the
GYRE_ROOT directory, I get the following error when I try and compile it:

[shashi@localhost gyre]$ make
FC gyre.f90
LD gyre
/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: *** [gyre] Error 1
rm gyre.o

Then I realized that when I installed the latest version of MESA, it also downloaded the latest version of GYRE - the same version you get
if you download GYRE standalone. I have the flag in the header file that is supposed to compile GYRE along with MESA set to YES, but when I install MESA and compile it, it doesn't seem as if it compiles GYRE. I tried running make in the gyre subdirectory within MESA and got the same result as above. Any thoughts would be appreciated. Thanks
Shashi

User avatar
rhtownsend
Site Admin
Posts: 398
Joined: Sun Mar 31, 2013 4:22 pm

Re: GYRE/MSA question

Post by rhtownsend » Wed Mar 14, 2018 5:33 pm

Hi Shashi --

Can you try running 'make clean' and then 'make' again? There may be some stuff left over from a previous compilation attempt.

cheers,

Rich

shashi
Posts: 3
Joined: Wed Mar 14, 2018 11:21 am

Re: GYRE/MSA question

Post by shashi » Thu Mar 15, 2018 7:24 am

Hello, on Fedora, I installed Gyre 5.1. In bash, I
export MESA_DIR=~/mesa
export MESASDK_ROOT=~/mesasdk
source ~/mesasdk/bin/mesasdk_init.sh
export GYRE=~/gyre
(ie. thjis is standalone GYRE)
cd $GYRE_DIR
make clean
make
That worked!
make test worked till the following:

TEST MESA model for delta Cephei star (non-adiabatic)...
...succeeded
TEST MESA model for Sun (non-adiabatic, diffusion vs. Eddington approxiation)...
8c8
< 200 -1 0 1 0.1427332222424266E+002 -0.8931067111800053E-005 0.1427291720001276E+002 -0.1147002548780197E-001
--- field 2 relative error 1.0e+00
> 200 0 0 0 0.1427332222424268E+002 -0.8931067049181604E-005 0.1424477944168673E+002 -0.2557153048180291E-002
...failed: summary.txt and ref/summary.txt differ in fields 1-5
make[4]: *** [test] Error 1
make[3]: *** [test] Error 2
make[2]: *** [test] Error 2
make[1]: *** [test] Error 2
make: *** [test] Error 2

User avatar
rhtownsend
Site Admin
Posts: 398
Joined: Sun Mar 31, 2013 4:22 pm

Re: GYRE/MSA question

Post by rhtownsend » Thu Mar 15, 2018 8:07 am

Hi Shashi --

Looks like things are working OK now. The failed test is a known issue on Linux -- nothing to worry about.

cheers,

Rich

shashi
Posts: 3
Joined: Wed Mar 14, 2018 11:21 am

Re: GYRE/MSA question

Post by shashi » Thu Mar 15, 2018 8:31 am

Hi, I also got the failed test to work following
cd test/nad/mesa/solar
make build_ref
Thanks for your help!

Post Reply