/[MITgcm]/MITgcm_contrib/PRM/eesmf_mod.dir/src/master/Alloc/AllocChildren.F90
ViewVC logotype

Contents of /MITgcm_contrib/PRM/eesmf_mod.dir/src/master/Alloc/AllocChildren.F90

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Apr 8 14:55:38 2005 UTC (20 years, 4 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint63m, checkpoint63n, HEAD
Added in allocation of different models to different CPU sets etc..

1 SUBROUTINE EesmfAllocChildren( cTab )
2
3 ! Allocates the components
4 ! Routine arguments
5 ! cTab :: Component attributes table
6 TYPE( EEsmfCattr ) :: cTab
7
8 ! Local variables
9 INTEGER I
10 TYPE( EEsmfGridComp ), POINTER :: gcArr(:)
11 TYPE( EEsmfCplComp ), POINTER :: ccArr(:)
12
13 ! Here we need to do a component allocate and assign components to
14 ! PET's within VM of the parent component.
15 DO I=1,cTab%nSets
16 IF ( TRIM(cTab%cTypeArr(I)) .EQ. 'gridded' ) THEN
17 CALL EEsmfAllocGridC( gcArr, cTab%nComps(I) )
18 ELSE IF ( TRIM(cTab%cTypeArr(I)) .EQ. 'coupler' ) THEN
19 CALL EEsmfAllocCplC( ccArr, cTab%nComps(I) )
20 ELSE
21 STOP 'ABNORMAL END: PRMTop found unrecognised component type.'
22 ENDIF
23 ENDDO
24
25 END SUBROUTINE EEsmfAllocChildren

  ViewVC Help
Powered by ViewVC 1.1.22