[mesa-users] PGPSTAR, problem in pgstar_controls.dek during compilation with gfortran 4.5.0

Maxime Viallet viallet.maxime at gmail.com
Thu Feb 24 13:29:24 EST 2011


	Hello Mesa-people,

I have successfully compiled and run mesa (rev. 2987) using gfortran 4.5.0 on mac os X 10.6.6
Now I am trying to get the PGPLOT interface working and I am running into this puzzling error while compiling the "star" module:

gfortran -fno-range-check  -fopenmp  -I../public -I../private -I../../include -Wunused-value -Werror -W -fimplicit-none   -O2 -c -ffree-form ../private/pgstar_ctrls_io.f
pgstar_controls.dek:5.74:
    Included at ../private/pgstar_ctrls_io.f:33:

      type (pgstar_win_file_data) :: pgstar_win_file_ptr(num_pgstar_plots)
                                                                          1
Error: Object 'pgstar_win_file_ptr' at (1) must have the SAVE attribute for default initialization of a component
make: *** [pgstar_ctrls_io.o] Error 1

/Users/viallet/postdoc/mesa/star/make
FAILED


Of course I naively tried to add by hand the "save" statement but then the file star/public/star_def.f would not compile anymore.

Has somebody already encountered this problem ?

Thanks !
Maxime



More information about the Mesa-users mailing list