Home Contact Us Site Map  
 
       
    next up previous contents
Next: 6. Physical Parameterization and Up: 5.5 Adjoint dump & Previous: 5.5.2 Recipe 1: single   Contents

5.5.3 Recipe 2: multi processor (MPI)

  1. On the machine where you execute the code (most likely not the machine where you run TAF) find the includes directory for MPI containing mpif.h. Either copy mpif.h to the machine where you generate the .f files before TAF-ing, or add the path to the includes directory to you genmake platform setup, TAF needs some MPI parameter settings (essentially mpi_comm_world and mpi_integer) to incorporate those in the adjoint code.

  2. In ECCO_CPPOPTIONS.h set
          #define ALLOW_DIVIDED_ADJOINT
          #define ALLOW_DIVIDED_ADJOINT_MPI
    
    This will include the header file mpif.h into the top level routine for TAF.

  3. Add the TAF option '-mpi' to the TAF argument list in the makefile.

  4. Follow the same steps as in Recipe 1 (previous section).

That's it. Good luck & have fun.



mitgcm-support@dev.mitgcm.org
Copyright © 2002 Massachusetts Institute of Technology