[mesa-users] PGPSTAR, problem in pgstar_controls.dek during compilation with gfortran 4.5.0
Bill Paxton
paxton at kitp.ucsb.edu
Thu Feb 24 13:36:11 EST 2011
Hi Maxime,
I suggest upgrading to 4.5.1 -- you can do that easily at this website:
http://gcc.gnu.org/wiki/GFortranBinaries
Good luck!
-Bill
On Feb 24, 2011, at 10:29 AM, Maxime Viallet wrote:
>
> 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
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users
More information about the Mesa-users
mailing list