OpenGGCM v4

From OpenGGCM

(This article is a stub. Please contribute.)

Contents

Features

The next version of OpenGGCM, called tentatively OpenGGCM v4, is planned to incorporate these new features / enhancements:

Support

FAQs

  • I'm using gfortran, and I only sporadically get output (and then a lot of it).

Set the environment variable GFORTRAN_UNBUFFERED_ALL to get unbuffered output. In bash: export GFORTRAN_UNBUFFERED_ALL=1.

  • When I run runme, the build breaks with the following messages:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for Fortran 77 compiler default output file name... 
configure: error: Fortran 77 compiler cannot create executables
See `config.log' for more details.

Your probably have MPIF77OPT set to flags that the current MPI compiler does not understand. Fix them, and use the chance to rename this variable to its newn ame MPIF77_FLAGS.

There may not be a working mpif77 compiler on the target machine at all. You will find the log file config.log, which will tell you more, in target/build if you are running on the local machine, or in remote_machine:[YOUR_HOME]/[RUN]/build.

Get the code through Git

Master branch
  • How to fetch the master branch

> git clone <your_userid>@fishercat.sr.unh.edu:/srv/git/openggcm.git

  • How to fetch modifications to the origin

> git checkout master > git fetch origin

reference: http://fishercat.sr.unh.edu/trac/openggcm

CRCM branch
  • (on the remote server - fishercat)

Initialize an empty branch on fishercat: log into the server and go wherever you want (cd //path-to-git-repos//) to initialize the branch (you do this only once and then no need to do it for each repository)

> git init −−bare openggcm.git

  • (on your local machine)

Add the repository vapirev to your account on the remote server

> git remote add vapirev your_server_account_username@fishercat.sr.unh.edu:~vapirev/openggcm.git

Show the repositories on the remote machine

> git remote show (you sould see repository vapirev somewhere there)

Checkout a new branch on your local machine from the newly added vapirev repository. This will automatically switch you to the new_branch_name git branch.

> git fetch vapirev (not sure if this is necessary)

> git checkout -b new_branch_name remotes/vapirev/crcm (replace remotes/vapirev/crcm with whatever is appropriate from git remote show)

Check which branch you are in

> git branch

or

> git branch -a

If you want to pull the new changes from branch vapirev (when it is being updated)

> git checkout new_branch_name (this ensures that you are in the proper branch

> git pull

  • (Build OpenGGCM)

Navigate to path-to-local-git-repos/openggcm and run autogen.sh

> ./autogen.sh

Build the utils

>cd path-to-local-git-repos/openggcm/util

> ./configure −−prefix=$HOME

> make

> make install

reference: look it up here http://fishercat.sr.unh.edu/trac/openggcm