[mesa-users] Fwd: compiling MESA on a Cray XC30
Bill Paxton
paxton at kitp.ucsb.edu
Wed Oct 22 13:04:14 EDT 2014
just fyi in case you wondered about compiling MESA at home on your personal Cray XC30.
Thanks to Daniel Grimwood for doing the work to get it going.
-B
Begin forwarded message:
> From: "Daniel Grimwood" <d.grimwood at ivec.org>
> Date: October 22, 2014 1:02:08 AM PDT
> To: <paxton at kitp.ucsb.edu>
> Subject: compiling MESA on a Cray XC30
>
> Hi Bill,
>
> One of the users on our Cray XC30 asked me to get MESA compiled. It compiled up fine with the Intel compiler, but I had to make changes to the sources to get it to compile with the Cray compiler. Please see attached two patches which do the same thing, just on different versions of MESA.
>
> The changes were minor…
> - A test program was failing when “stop” appeared at the end of a program. The Cray compiler outputs the word “STOP”, and the diff comparison against expected results then fails. I only changed the programs that were involved in the tests – there are others in the directory I did not touch which probably need changing too.
> - I changed the length() function to the Fortran intrinsic len_trim().
> - Cray doesn’t like initialisation of character arrays using a single Hollerith constant. I changed it to initialise using an array of spaces. I have no idea if this introduces issues.
> - One of the routines had “dP” declared as a variable, but this was already set as a constant to sort out double precision reals. I renamed it to “dP1”, but you might want to rename it to something better.
>
> Regards,
> Daniel.
>
> Dr. Daniel Grimwood
> iVEC Supercomputing Specialist
> ARRC Building, Technology Park
> 26 Dick Perry Avenue
> Kensington WA 6151
> Australia
>
> Tel +61 8 6436 8680
> Fax +61 8 6436 8555
> Email D.Grimwood at ivec.org
> Web www.ivec.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141022/1544f55b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa-r6794.diff
Type: application/octet-stream
Size: 9225 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141022/1544f55b/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141022/1544f55b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa-r7184.diff
Type: application/octet-stream
Size: 9588 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141022/1544f55b/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141022/1544f55b/attachment-0002.html>
More information about the Mesa-users
mailing list