Several people have asked about whether you can run WACCM on a mac. By default, you can not; however, while I was a graduate student at the University of Colorado, we made changes to support running WACCM on a mac. A description of how to build the support libraries (NETCDF and MPICH2) and how to build and run CAM and WACCM is available at the Toon Group wiki:
http://atoc.colorado.edu/aerosol/index.php/NCAR_models
However, the scripts and source code that they use are not available to you. Therefore, I have modified the NCAR scripts and put together a tar file with the important file changes. You can download them from my anonymous ftp site:
ftp://ftp.ucar.edu/pub/acd/bardeenc/downloads/wa319_14_mac.tar
The main changes are additions to the WACCM makefile to support building on the mac using ifort and gcc, the additon of build rules for ESMF to build on the mac using ifort and gcc, and modifications to get_memusage.c to prevent it from crashing WACCM. One limitation with ifort 11.x is that you can not run WACCM with multiple processors using OPEN/MP. However, you can use multiple processors on the mac with MPI. You can also build the model using single CPU, and this is controlled by the variable USE_MPI in the make_waccm.sh and smin_4x_run.sh scripts. The scripts default to using MPI with 2 processors, but this means you will need to have already built MPICH2 and have launch the MPI deamon (mpd &). The variable WACCM_THREADS in the run script controls how many processors are used. I have only modified the smin_4x scripts and namelist, but you can make similar changes to the 2x cases and they may run if you have enough memory. I have built and run the 4 model on a laptop with 4 Gb of RAM in both the stand-alone and MPI (2 threads) modes. I have also run on an older 8-core desktop Mac using up to 8 MPI threads.
I have only tried porting to the Intel compiler, but you may be able to get WACCM to work with other compilers. If you try other compilers, let us know what worked and what additional changes you needed to make. Also, let me know if I left anything out or if you have any problems trying to follow these directions.
Thanks,
Chuck
http://atoc.colorado.edu/aerosol/index.php/NCAR_models
However, the scripts and source code that they use are not available to you. Therefore, I have modified the NCAR scripts and put together a tar file with the important file changes. You can download them from my anonymous ftp site:
ftp://ftp.ucar.edu/pub/acd/bardeenc/downloads/wa319_14_mac.tar
The main changes are additions to the WACCM makefile to support building on the mac using ifort and gcc, the additon of build rules for ESMF to build on the mac using ifort and gcc, and modifications to get_memusage.c to prevent it from crashing WACCM. One limitation with ifort 11.x is that you can not run WACCM with multiple processors using OPEN/MP. However, you can use multiple processors on the mac with MPI. You can also build the model using single CPU, and this is controlled by the variable USE_MPI in the make_waccm.sh and smin_4x_run.sh scripts. The scripts default to using MPI with 2 processors, but this means you will need to have already built MPICH2 and have launch the MPI deamon (mpd &). The variable WACCM_THREADS in the run script controls how many processors are used. I have only modified the smin_4x scripts and namelist, but you can make similar changes to the 2x cases and they may run if you have enough memory. I have built and run the 4 model on a laptop with 4 Gb of RAM in both the stand-alone and MPI (2 threads) modes. I have also run on an older 8-core desktop Mac using up to 8 MPI threads.
I have only tried porting to the Intel compiler, but you may be able to get WACCM to work with other compilers. If you try other compilers, let us know what worked and what additional changes you needed to make. Also, let me know if I left anything out or if you have any problems trying to follow these directions.
Thanks,
Chuck