| 324 |
|
|
| 325 |
\end{itemize} |
\end{itemize} |
| 326 |
|
|
| 327 |
\section{Example experiments} |
\section[MITgcm Example Experiments]{Example experiments} |
| 328 |
\label{sect:modelExamples} |
\label{sect:modelExamples} |
| 329 |
|
|
| 330 |
%% a set of twenty-four pre-configured numerical experiments |
%% a set of twenty-four pre-configured numerical experiments |
| 484 |
Once you have chosen the example you want to run, you are ready to |
Once you have chosen the example you want to run, you are ready to |
| 485 |
compile the code. |
compile the code. |
| 486 |
|
|
| 487 |
\section{Building the code} |
\section[Building MITgcm]{Building the code} |
| 488 |
\label{sect:buildingCode} |
\label{sect:buildingCode} |
| 489 |
|
|
| 490 |
To compile the code, we use the {\em make} program. This uses a file |
To compile the code, we use the {\em make} program. This uses a file |
| 932 |
|
|
| 933 |
\end{enumerate} |
\end{enumerate} |
| 934 |
|
|
| 935 |
|
An example of the above process on the MITgcm cluster (``cg01'') using |
| 936 |
|
the GNU g77 compiler and the mpich MPI library is: |
| 937 |
|
|
| 938 |
|
{\footnotesize \begin{verbatim} |
| 939 |
|
% cd MITgcm/verification/exp5 |
| 940 |
|
% mkdir build |
| 941 |
|
% cd build |
| 942 |
|
% ../../../tools/genmake2 -mpi -mods=../code \ |
| 943 |
|
-of=../../../tools/build_options/linux_ia32_g77+mpi_cg01 |
| 944 |
|
% make depend |
| 945 |
|
% make |
| 946 |
|
% cd ../input |
| 947 |
|
% /usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/g77/bin/mpirun.ch_gm \ |
| 948 |
|
-machinefile mf --gm-kill 5 -v -np 2 ../build/mitgcmuv |
| 949 |
|
\end{verbatim} } |
| 950 |
|
|
| 951 |
|
|
| 952 |
|
|
| 953 |
\section{Running the model} |
\section[Running MITgcm]{Running the model in prognostic mode} |
| 954 |
\label{sect:runModel} |
\label{sect:runModel} |
| 955 |
|
|
| 956 |
If compilation finished succesfuully (section \ref{sect:buildingCode}) |
If compilation finished succesfuully (section \ref{sect:buildingCode}) |
| 1059 |
>> for n=1:11; imagesc(eta(:,:,n)');axis ij;colorbar;pause(.5);end |
>> for n=1:11; imagesc(eta(:,:,n)');axis ij;colorbar;pause(.5);end |
| 1060 |
\end{verbatim} |
\end{verbatim} |
| 1061 |
|
|
| 1062 |
\section{Doing it yourself: customizing the code} |
\section[Customizing MITgcm]{Doing it yourself: customizing the code} |
| 1063 |
|
|
| 1064 |
When you are ready to run the model in the configuration you want, the |
When you are ready to run the model in the configuration you want, the |
| 1065 |
easiest thing is to use and adapt the setup of the case studies |
easiest thing is to use and adapt the setup of the case studies |