mesa-users] parallel usage of MESA...

Bill Paxton paxton at
Mon Sep 21 10:29:31 EDT 2009

Hi Ehsan,

MESA supports OpenMP parallelism.

There are compiler flags for openmp;
the standard default in utils/makefile_header
is to enable OpenMP, but you might want
to double check.

For ifort, you should find:
FCopenmp = -openmp -threads

For gfortran,
FCopenmp = -fopenmp

At runtime, the openmp implementation checks
an environment variable to see how many
threads to use.   On my dual core Mac,
I set this to 2.  On a qual-core server, you might
set it to 4 or even 8.  Depending on your shell,
the command looks something like this:


Finally, to get the most benefit, it helps to reduce
the IO since it is a bottleneck for parallelism.
For mesa/star, this means limiting the frequency
of writing info to log files.   My default is

       photostep = 50
       profile_interval = 50
       log_cnt = 5

You can of course reduce these to increase the
frequency of log entries during interesting events.

Hope that helps!


On Sep 21, 2009, at 7:35 AM, Ehsan Moravveji wrote:

> Dear MESA users,
> Hi. I'm Ehsan, and quite new to MESA.
> I remember to read somewhere either in the manual, or the webpage  
> that it
> supports parallel computing. However, I do not remember how to  
> activate
> this option.
> Anyone to help me with that?
> Thanks.
> -- 
> Moravveji, Ehsan.
> Ph.D student of Astrophysics.
> Institute for Advanced Studies in Basic Sciences (IASBS).
> Gavazang Road, Zanjan, Iran. P.O. Box: 45195-1159
> Office: (+98)241-415 2212
> Fax:    (+98)241-415 2104
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9-12, 2009. Register  
> now!
> _______________________________________________
> mesa-users mailing list
> mesa-users at

More information about the Mesa-users mailing list