|
|
|
Next: 5.5 Adjoint code generation
Up: 5.4 Adjoint dump &
Previous: 5.4.2 Recipe 1: single
Contents
- 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.
- 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.
- Add the TAF option '-mpi' to the TAF argument list in the makefile.
- Follow the same steps as in Recipe 1 (previous section).
That's it. Good luck & have fun.
mitgcm-support@mitgcm.org
Copyright © 2006
Massachusetts Institute of Technology |
Last update 2011-01-09 |
|
|