Download Reference Manual & User's Guide

Transcript
VODA: ANR-08-COSI-016
Operation
communication
communication
communication
arithmetic
inpout/Output
inpout/Output
Tangent-Linear
send
receive
gather
scatter
write
read
Adjoint
receive
send
scatter
gather
read
write
Table 1.9: ORCA2 Results of Adjoint test fo sub-routines
There is no tangent of lbc lnk. The direct routine is used. For the adjoint part we use the coding
rule described in table 1.9
1.8.2
Adjoint of MPI ALLGATHER
From revision 3.2 of NEMO a new treatment of north fold horizontal bondary condition is performed using lbcnfd.F90 routine. This induces a MPI ALLGATHER usage in libmpp.F90 module
(mpp lbc north 3d and mpp lbc north 2d).
MPI ALLGATHER gathers data from all tasks and distribute it to all.
Figure 1.1: MPI ALLGATHER task description (ref: http://rc.usf.edu/tutorials/classes
/tutorial/mpi/chapter8.html
If we call zloc Pi the data from task (i) and the zglo the result of MPI ALLGATHER and
zloc adj Pi , zglo adj their adjoint equivalent.
The adjoint counter-part of
MPI_ALLGATHER(zglo, zloc)
is
Deliverable D1.3: NEMOTAM Reference Manual & User’s Guide
21