Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ww3 hycom #926

Draft
wants to merge 169 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
09164b5
ww3_wise: add my comp and link
aronroland May 19, 2022
59638f6
ww3_wise: add my comp and link
aronroland May 21, 2022
9fd1a47
ww3_wise: comp and link datarmo
aronroland May 22, 2022
bb00127
ww3_wise: group velocities and new limiter ...
aronroland May 22, 2022
e5d2d9d
ww3_wise: improve speed of computation
aronroland May 26, 2022
826ab06
ww3_wise: further optimization level
aronroland May 26, 2022
d843168
ww3_wise: some more cleaning
aronroland May 26, 2022
29139ac
ww3_wise: more on performance
aronroland May 26, 2022
ff51b11
Merge branch 'ww3_wise' of https://github.com/erdc/WW3 into ww3_wise
aronroland May 26, 2022
a586cc9
ww3_wise: more on performance
aronroland May 27, 2022
89e2a1c
ww3_wise: ... memory ...
aronroland May 27, 2022
78ee80f
ww3_wise: fix more memcheck issues
aronroland May 27, 2022
4931557
ww3_wise: and more on memcheck
aronroland May 27, 2022
54b301a
ww3_wise: more on memcheck and others
aronroland May 28, 2022
193496b
ww3_wise: more on debugging ...
aronroland May 28, 2022
1b1c04c
ww3_wise: more on limiters ...
aronroland May 29, 2022
7924004
Merge branch 'develop' into ww3_wise
aronroland Jun 11, 2022
ed82af9
ww3_wise: merge from WISE
aronroland Jun 13, 2022
6b22bca
ww3_wise: fix typo and syntax error
aronroland Jun 16, 2022
a9c17c4
ww3_wise: testing load imbalance
aronroland Sep 16, 2022
e388055
ww3_wise: update wave reflection and extend for implicit
aronroland Sep 17, 2022
b6ed65c
ww3_wise: commit missing use part for reflection
aronroland Sep 28, 2022
5dcf76d
Merge branch 'develop' into ww3_wise
aronroland Sep 29, 2022
bb1ffd0
ww3_wise: conflicts
aronroland Sep 29, 2022
a6d7dfe
finished merge with develop
aronroland Sep 29, 2022
fba00ba
ww3_wise: more on the merge ...
aronroland Sep 29, 2022
8f9ba92
ww3_wise: next part of consolodiation
aronroland Sep 30, 2022
b60e6cc
ww3_wise: merge wave_setup
aronroland Sep 30, 2022
e79c3aa
ww3_wise: more on setup
aronroland Sep 30, 2022
70277b9
ww3_wise: 2nd part
aronroland Sep 30, 2022
fb2ba68
ww3_wise: debug stage 1 ...
aronroland Oct 1, 2022
e27966a
ww3_wise: update wave setup part
aronroland Oct 14, 2022
a850572
ww3_wise: add hycom modification for SHOM
aronroland Oct 14, 2022
a47ec3e
ww3_wise: Some bug fix for the HYCOM part
aronroland Oct 14, 2022
9dcbb74
ww3_wise: add proper link line in link.itedev
aronroland Oct 17, 2022
bb20505
ww3_wise: interfacing c ...
aronroland Oct 17, 2022
933fbc7
ww3_wise: type conversion in the solver
aronroland Oct 23, 2022
1c0db66
ww3_wise: add DD to OASIS ... 1st part ...now debugging
aronroland Oct 23, 2022
32a4b2b
ww3_wise: fix oasis coupling syntax error
aronroland Oct 24, 2022
98b7a8c
ww3_wise: more fix for oasis dd treatment
aronroland Oct 24, 2022
0edb71d
ww3_wise: more on the oasis part with respect to dd
aronroland Oct 26, 2022
a28560e
Merge branch 'develop' into ww3_wise
aronroland Oct 26, 2022
bcdf642
ww3_wise: more oasis stuff
aronroland Oct 26, 2022
425e450
Merge branch 'ww3_wise' of https://github.com/erdc/WW3 into ww3_wise
aronroland Oct 26, 2022
a62a0b5
ww3_wise: fix typo for oasis dd
aronroland Oct 27, 2022
e2efe78
ww3_wise: working on the debug flags ...
aronroland Oct 27, 2022
d05ad6b
ww3_wise: add some debug for oasis
aronroland Oct 27, 2022
f3b76af
ww3_wise: add more oasis input
aronroland Oct 27, 2022
5d1cea5
ww3_wise: add missing oasis part for unstructured now trying ORANGE p…
aronroland Oct 28, 2022
aa3380e
ww3_wise: add also for POINT partition ...
aronroland Oct 28, 2022
f903372
ww3_wise: add switch files ...
aronroland Oct 29, 2022
7314010
Merge branch 'develop' into ww3_wise_merge_develop
aronroland Nov 6, 2022
14cf5ee
ww3_wise_merge_develop: fixing merge errors ...
aronroland Nov 6, 2022
08d307a
ww3_wise_merge_develop: more merge errors ...
aronroland Nov 6, 2022
c8f7e8b
ww3_wise_merge_develop: more merge errors ...
aronroland Nov 6, 2022
8c9cc80
ww3_wise_merge_develop: more fixed for merge
aronroland Nov 6, 2022
3e5c1aa
ww3_wise_merge_develop: more on the merging ...
aronroland Nov 6, 2022
1c033a6
ww3_wise_merge_develop: more merging fun ...
aronroland Nov 6, 2022
2ac2531
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Nov 6, 2022
ff5dbb9
ww3_wise_merge_develop: more merging ...
aronroland Nov 6, 2022
0ea1334
ww3_wise_merge_develop: now it is compiling ...
aronroland Nov 6, 2022
82647a4
ww3_wise_merge_develop: more merge of setup work
aronroland Nov 23, 2022
e930d09
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Nov 23, 2022
508ee91
ww3_wise_merge_develop: consolidation of reflection part for ugtype
aronroland Nov 26, 2022
cf1464b
ww3_wise_merge_develop: more on setup and reflection ...
aronroland Nov 26, 2022
86b3f25
ww3_wise_merge_develop: cleaning
aronroland Nov 28, 2022
b2ac283
ww3_wise_merge_develop: testing output ..
aronroland Nov 28, 2022
2170617
ww3_wise_merge_develop: cleaning the refleciton part
aronroland Nov 28, 2022
284e175
ww3_wise_merge_develop: cleaning implicit reflection ...
aronroland Nov 29, 2022
ac163db
ww3_wise_merge_develop: more cleaning on reflection
aronroland Nov 30, 2022
d2bf8eb
ww3_wise_merge_develop: working on higher order scheme
aronroland Dec 2, 2022
390de6e
ww3_wise_merge_develop: fix bug in 2nd order explicit scheme and add …
aronroland Dec 2, 2022
fe8753e
ww3_wise_merge_develop: merge also my triad code
aronroland Dec 2, 2022
bbdc540
ww3_wise_merge_develop: merge last oasis work
aronroland Dec 6, 2022
b29df46
ww3_wise_merge_develop: more on oasis
aronroland Dec 8, 2022
df4d23f
ww3_wise_merge_develop: more on oasis
aronroland Dec 8, 2022
b4825a3
ww3_wise_merge_develop: now check for the wise version with OASIS, th…
aronroland Dec 8, 2022
8a17ae9
Revert "ww3_wise_merge_develop: now check for the wise version with O…
aronroland Dec 8, 2022
5dabcdb
ww3_wise_merge_develop: more on the oasis coupler ...
aronroland Dec 11, 2022
e3f9094
ww3_wise_merge_develop: fix compilation without pdlib
aronroland Dec 15, 2022
9b34518
ww3_wise_merge_develop: more on oasis and cleaning
aronroland Dec 16, 2022
8cd9af3
ww3_wise_merge_develop: next steps on oasis coupler ...
aronroland Dec 21, 2022
ca24457
ww3_wise_merge_develop: remove debug statements
aronroland Jan 3, 2023
203e3ff
ww3_wise_merge_develop: add ndr
aronroland Jan 10, 2023
d408adc
Merge branch 'develop' into ww3_wise_merge_develop
aronroland Jan 11, 2023
30ae20a
Merge branch 'develop' into ww3_wise_merge_develop
aronroland Jan 11, 2023
28476b6
ww3_wise_merge_develop: do missing locality in block explicit scheme
aronroland Jan 11, 2023
5694026
ww3_wise_merge_develop: rewrite block explicit scheme ...
aronroland Jan 12, 2023
756c105
ww3_wise_merge_develop: fix some small bugs ..
aronroland Jan 13, 2023
0f6c0ae
ww3_wise_merge_develop: add more testoutput
aronroland Jan 15, 2023
5e65ffc
ww3_wise_merge_develop: add missing reflection part
aronroland Jan 15, 2023
ddcd86b
ww3_wise_merge_develop: sync with mathieu's latest work for setup + t…
aronroland Jan 18, 2023
98d8ef3
ww3_wise_merge_develop: clean leftovers of setup computations ...
aronroland Jan 18, 2023
897cc81
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Jan 18, 2023
1b15ddc
ww3_wise_merge_develop: cleaning of the oasis part and more work on t…
aronroland Jan 23, 2023
9315406
ww3_wise_merge_develop: add stdout about the unst schemes used
aronroland Jan 23, 2023
f686842
ww3_wise_merge_develop: getting rid of more barriers for oasis debugging
aronroland Jan 23, 2023
701dbb6
ww3_wise_merge_develop: more on oasis
aronroland Jan 23, 2023
748d7b0
ww3_wise_merge_develop: cleaning, consolidation, default variables, o…
aronroland Jan 27, 2023
c27a637
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Jan 27, 2023
acd34c7
ww3_wise_merge_develop: do intermediate fix for exchange of the block…
aronroland Jan 27, 2023
e4fd5c1
ww3_wise_merge_develop: fix for block explicit
aronroland Jan 27, 2023
2678302
ww3_wise_merge_develop: missing part of last merge ...
aronroland Jan 29, 2023
2083e06
ww3_wise_merge_develop: cleaning ..
aronroland Jan 29, 2023
4e080fb
ww3_wise_merge_develop: turn of new limiter
aronroland Jan 29, 2023
500f104
ww3_wise_merge_develop: quick fix for implicit scheme without sources…
aronroland Feb 1, 2023
ceefdee
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Feb 1, 2023
6abc55a
ww3_wise_merge_develop: code consolidation
aronroland Feb 2, 2023
54fee19
ww3_wise_merge_develop: fix for oasis
aronroland Feb 3, 2023
7c2f6ee
ww3_wise_merge_develop: add swicthes for SHOM
aronroland Feb 3, 2023
0a0c905
ww3_wise_merge_develop: fix logics in switches
aronroland Feb 3, 2023
eb04676
ww3_wise_merge_develop: cleaning
aronroland Feb 3, 2023
cf7c31e
ww3_wise_merge_develop: SOLVED THE CURRENT BUG!
aronroland Feb 5, 2023
f8005a0
fix conflict
Feb 8, 2023
3cb2ff3
two bug fixes for nonpdlib regtests
Feb 8, 2023
192b8ea
move CPUTIME to MPI swtich ifdef
Feb 8, 2023
fd450c3
fix for non-pdlib cases
Feb 8, 2023
a901e7b
update ncep matrix module versions
Feb 8, 2023
7a80232
additonal fixes for regtests
Feb 9, 2023
a32b4c5
add regtests for global_unstr
Feb 9, 2023
8f1ebea
revert model/bin
Feb 9, 2023
880f159
revert model/src/CMakeLists.txt
Feb 9, 2023
c68cfb3
revert regtests/ww3_tp2.6
Feb 9, 2023
03c3197
ww3_wise_merge_develop: comment in wave setup computation .ww3_wise_m…
aronroland Feb 10, 2023
aafb0d4
ww3_wise_merge_develop: some little test before final freeze
aronroland Feb 11, 2023
06bf389
ww3_wise_merge_develop: revert
aronroland Feb 12, 2023
3c51988
merge upstream dev
Feb 16, 2023
ca76d1c
ww3_wise_merge_develop: 1st round of cleaning debug statements
aronroland Feb 17, 2023
3d68cd6
ww3_wise_merge_develop: cleaned all cluter, debug and other leftovers…
aronroland Feb 17, 2023
f682540
ww3_wise_merge_develop: move to point partition for OASIS
aronroland Feb 18, 2023
d7a3938
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Feb 18, 2023
d3d4981
ww3_wise_merge_develop: fix ifdef/endif issue
aronroland Feb 20, 2023
3a60217
ww3_wise_merge_develop: fix bug in triads
aronroland Feb 22, 2023
b984b26
ww3_wise_merge_develop: add back doxygen
aronroland Feb 22, 2023
5547572
ww3_wise_merge_develop: more on the comments
aronroland Feb 22, 2023
ec13e94
ww3_wise_merge_develop: order of declaration
aronroland Feb 22, 2023
df6cc07
ww3_wise_merge_develop: more cleaning
aronroland Feb 22, 2023
30574c3
ww3_wise_merge_develop: more cleaning ...
aronroland Feb 22, 2023
d33791d
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Feb 22, 2023
4bda7c6
ww3_wise_merge_develop: work on headers
aronroland Feb 24, 2023
bee8db5
ww3_wise_merge_develop: doing some more checks ...
aronroland Feb 24, 2023
21f32d0
ww3_wise_merge_develop: extend for car-deck approach
aronroland Feb 25, 2023
58585dc
ww3_wise_merge_develop: more cleanup and consolidation
aronroland Feb 27, 2023
539907f
ww3_wise_merge_develop: delete cluter and dbg msg
aronroland Feb 27, 2023
c40694d
ww3_wise_merge_develop: more cleaning of stdout
aronroland Feb 27, 2023
596a34d
ww3_wise_merge_develop: more cleaning
aronroland Feb 27, 2023
0f4ed02
ww3_wise_merge_develop: add more namelist comments, not finished yet
aronroland Feb 27, 2023
a32ca06
ww3_wise_merge_develop: edit namelist based on jessica input
aronroland Feb 27, 2023
e29a9c0
ww3_wise_merge_develop: fix issues following tyler
aronroland Feb 27, 2023
d8ada73
ww3_wise_merge_develop: some more work on the namelist comments
aronroland Feb 27, 2023
533ac5f
ww3_wise_merge_develop: working on the namelist
aronroland Feb 28, 2023
8643a93
Merge branch 'NOAA-EMC:develop' into ww3_wise_merge_develop
aliabdolali Feb 28, 2023
04b4451
ww3_wise_merge_develop: clean and add missing pragma
aronroland Feb 28, 2023
1b6c95e
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Feb 28, 2023
f40ef82
ww3_wise_merge_develop: cleaning and namelist
aronroland Feb 28, 2023
ef22a77
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Feb 28, 2023
d9a5737
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Feb 28, 2023
dd60dcb
adding boers case regtest ww3_tp2.19
thesser1 Mar 1, 2023
3cd9ca2
ww3_wise_merge_develop: add explanation of unst namelist in the inp f…
aronroland Mar 1, 2023
962900a
cleaning up regtest 2.19
thesser1 Mar 1, 2023
0ccb4e9
merge develop
Mar 1, 2023
2fa2b76
Update switch_PDLIB
aliabdolali Mar 1, 2023
3757cd7
Merge branch 'ww3_wise_merge_develop' of https://github.com/erdc/WW3 …
aronroland Mar 2, 2023
0bff17e
ww3_hycom: start working on hycom part
aronroland Mar 2, 2023
47d1d94
ww3_hycom: add bug fix from develop ...
aronroland Jun 27, 2023
7d2d36f
Merge branch 'develop' into ww3_hycom
aronroland Dec 2, 2023
c38f88e
ww3_hycom: clean init in w3grid
aronroland Jan 16, 2024
8d55203
ww3_hycom: merging changes with SHOM
aronroland Apr 26, 2024
dd5ff98
ww3_hycom: merge ww3_shel from SHOM
aronroland Apr 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 99 additions & 30 deletions model/src/w3oacpmd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ MODULE W3OACPMD
!
USE MOD_OASIS ! OASIS3-MCT module
!
USE W3ODATMD, ONLY: NAPROC, IAPROC, UNDEF
USE MPI, ONLY : MPI_SUM, MPI_INT
USE W3PARALL, ONLY : INIT_GET_ISEA
#ifdef W3_PDLIB
USE YOWNODEPOOL, ONLY: NPA, NP, IPLG
#endif

IMPLICIT NONE
PRIVATE
!
Expand Down Expand Up @@ -331,7 +338,7 @@ SUBROUTINE CPL_OASIS_GRID(LD_MASTER,ID_LCOMM)
!
! 1.3. Unstructured grids
! ----------------------------------
WRITE(*,*) 'TO BE IMPLEMENT FOR UNSTRUCTURED GRIDS'
WRITE(*,*) 'TO BE IMPLEMENT FOR UNSTRUCTURED GRIDS CPL_OASIS_GRID'
STOP
END IF
!
Expand Down Expand Up @@ -367,15 +374,20 @@ SUBROUTINE CPL_OASIS_DEFINE(NDSO,RCV_STR,SND_STR)
!/ | A. Thevenin |
!/ | V. Garnier |
!/ | M. Accensi |
!/ ! A. Roland |
!/ ! H. Michaud |
!/ | FORTRAN 90 |
!/ | Last update : 08-Jun-2018 |
!/ | Last update : 22-Feb-2023 |
!/ +-----------------------------------+
!/
!/ Jul-2013 : Origination. ( version 4.18 )
!/ April-2016 : Add coupling for unstructured grids ( version 5.07 )
!/ (R. Baraille & J. Pianezze)
!/ April-2016 : Add comments (J. Pianezze) ( version 5.07 )
!/ 08-Jun-2018 : use INIT_GET_ISEA ( version 6.04 )
!/ 22-Feb-2023 : Extend to domain decomposition ( version 7.xx )
!/ 01-Mar-2023 : Work on HYCOM part
!/ (A. Roland & H. Michaud)
!/
! 1. Purpose :
!
Expand Down Expand Up @@ -416,7 +428,12 @@ SUBROUTINE CPL_OASIS_DEFINE(NDSO,RCV_STR,SND_STR)
USE W3GDATMD, ONLY: NSEAL,NSEA, NX, NY, MAPSTA, MAPSF, GTYPE, &
& UNGTYPE, RLGTYPE, CLGTYPE, SMCTYPE
USE W3ODATMD, ONLY: NAPROC, IAPROC
USE W3PARALL, ONLY : INIT_GET_ISEA
USE W3ADATMD, ONLY: MPI_COMM_WAVE
#ifdef W3_PDLIB
USE W3PARALL, ONLY : INIT_GET_ISEA
USE YOWNODEPOOL, ONLY: NPA, NP, IPLG
#endif
IMPLICIT NONE
!
!/ ------------------------------------------------------------------- /
!/ Parameter list
Expand All @@ -427,7 +444,7 @@ SUBROUTINE CPL_OASIS_DEFINE(NDSO,RCV_STR,SND_STR)
!/ ------------------------------------------------------------------- /
!/ Local parameters
!/
INTEGER :: IB_I,I
INTEGER :: IB_I,I,IPART,IERR_MPI
INTEGER :: IL_PART_ID ! PartitionID
INTEGER, ALLOCATABLE, DIMENSION(:) :: ILA_PARAL ! Description of the local partition in the global index space
INTEGER, DIMENSION(4) :: ILA_SHAPE ! Vector giving the min & max index for each dim of the fields
Expand Down Expand Up @@ -488,31 +505,81 @@ SUBROUTINE CPL_OASIS_DEFINE(NDSO,RCV_STR,SND_STR)
!
! 1.3. Unstructured grids
! ----------------------------------
WRITE(*,*) 'TO BE VERIFIED FOR UNSTRUCTURED GRIDS'
STOP
!
DO JSEA=1,NSEAL
ILA_PARAL(JSEA*2+1) = (IAPROC-1) + (JSEA-1)*NAPROC
ILA_PARAL(JSEA*2+2) = 1
END DO
#ifdef W3_PDLIB
IPART = 4 ! USING POINT PARTITION FOR UNSTRUCTURED DD
IF (IPART == 3) THEN
! * allocate : OASIS ORANGE partition
ALLOCATE(ILA_PARAL(2+NP*2))
! * Define the partition : OASIS ORANGE partition
ILA_PARAL(1) = 3
! * total number of segments of the global domain
ILA_PARAL(2) = NP
DO JSEA = 1, NP
CALL INIT_GET_ISEA(ILA_PARAL(JSEA*2+1),JSEA)
ILA_PARAL(JSEA*2+2) = 1
END DO
ELSE IF (IPART == 4) THEN
! * allocate : OASIS POINT partition
ALLOCATE(ILA_PARAL(2+NP))
! * Define the partition : OASIS POINTS partition
ILA_PARAL(1) = 4
! * total number of segments of the global domain
ILA_PARAL(2) = NP
DO JSEA = 1, NP
CALL INIT_GET_ISEA(ILA_PARAL(JSEA+2),JSEA)
ENDDO
ENDIF
#else
IPART = 4
IF (IPART == 3) THEN
! * allocate : OASIS ORANGE partition
ALLOCATE(ILA_PARAL(2+NSEAL*2))
! * Define the partition : OASIS ORANGE partition
ILA_PARAL(1) = 3
! * total number of segments of the global domain
ILA_PARAL(2) = NSEAL
DO JSEA = 1, NSEAL
CALL INIT_GET_ISEA(ILA_PARAL(JSEA*2+1),JSEA)
ILA_PARAL(JSEA*2+2) = 1
END DO
ELSE IF (IPART == 4) THEN
! * allocate : OASIS POINT partition
ALLOCATE(ILA_PARAL(2+NSEAL))
! * Define the partition : OASIS POINTS partition
ILA_PARAL(1) = 4
! * total number of segments of the global domain
ILA_PARAL(2) = NSEAL
DO JSEA = 1, NSEAL
CALL INIT_GET_ISEA(ILA_PARAL(JSEA+2),JSEA)
ENDDO
ENDIF
#endif
!
ENDIF

!
! 2. Partition definition
! ----------------------------------
CALL OASIS_DEF_PARTITION(IL_PART_ID, ILA_PARAL,IL_ERR,NNODES)
CALL OASIS_DEF_PARTITION(IL_PART_ID, ILA_PARAL,IL_ERR,NSEA)
IF(IL_ERR /= 0) THEN
CALL OASIS_ABORT(IL_COMPID, 'CPL_OASIS_DEFINE', 'Problem during oasis_def_partition')
ENDIF


!
! 3. Coupling fields declaration
! ----------------------------------
#ifdef W3_PDLIB
ILA_SHAPE(:) = (/1, NP, 1, 1 /)
#else
ILA_SHAPE(:) = (/1, NSEAL, 1, 1 /)
#endif
!
ILA_VAR_NODIMS(1) = 2 ! rank of fields array
ILA_VAR_NODIMS(2) = 1 ! always 1 with OASIS3-MCT 2.0
!
CALL GET_LIST_EXCH_FIELD(NDSO, RCV_FLD, SND_FLD, IL_NB_RCV, IL_NB_SND, RCV_STR, SND_STR)

!
! 3.1 Send coupling fields
! ----------------------------------
Expand All @@ -530,6 +597,8 @@ SUBROUTINE CPL_OASIS_DEFINE(NDSO,RCV_STR,SND_STR)
CALL OASIS_ABORT(IL_COMPID, 'CPL_OASIS_DEFINE', 'Problem during oasis_def_var')
ENDIF
ENDDO


!
! 3.2 Received coupling fields
! ----------------------------------
Expand All @@ -547,11 +616,14 @@ SUBROUTINE CPL_OASIS_DEFINE(NDSO,RCV_STR,SND_STR)
CALL OASIS_ABORT(IL_COMPID, 'CPL_OASIS_DEFINE', 'Problem during oasis_def_var')
ENDIF
ENDDO


!
! 4. End of definition phase
! ----------------------------------
CALL OASIS_ENDDEF(IL_ERR)


IF (IL_ERR /= 0) THEN
CALL OASIS_ABORT(IL_COMPID, 'CPL_OASIS_DEFINE', 'Problem during oasis_enddef')
ENDIF
Expand Down Expand Up @@ -676,6 +748,10 @@ SUBROUTINE CPL_OASIS_RCV(ID_NB, ID_TIME, RDA_FIELD, LD_ACTION)
!/ ------------------------------------------------------------------- /
!/ Parameter list
!/
USE W3ADATMD, ONLY: MPI_COMM_WAVE
USE W3ODATMD, ONLY: NAPROC, IAPROC, UNDEF
USE W3GDATMD, ONLY: NSEAL, NSEA, NX
IMPLICIT NONE
INTEGER, INTENT(IN) :: ID_NB ! Number of the field to be received
INTEGER, INTENT(IN) :: ID_TIME ! Ocean time-step in seconds
REAL(KIND=8), DIMENSION(:,:), INTENT(OUT) :: RDA_FIELD ! Coupling field array to be received
Expand All @@ -685,15 +761,18 @@ SUBROUTINE CPL_OASIS_RCV(ID_NB, ID_TIME, RDA_FIELD, LD_ACTION)
!/ Local parameters
!/
INTEGER :: IL_INFO ! OASIS3-MCT info argument
INTEGER :: IERR_MPI, NPSUM
!/
!/ ------------------------------------------------------------------- /
!/ Executable part
!/

CALL OASIS_GET ( RCV_fld(ID_NB)%IL_FIELD_ID &
& , ID_TIME &
& , RDA_FIELD &
& , IL_INFO &
& )

!
LD_ACTION = IL_INFO == OASIS_RECVD .OR. IL_INFO == OASIS_FROMREST .OR. &
& IL_INFO == OASIS_RECVOUT .OR. IL_INFO == OASIS_FROMRESTOUT
Expand Down Expand Up @@ -842,30 +921,21 @@ SUBROUTINE GET_LIST_EXCH_FIELD(NDSO, RCV, SND, ID_NB_RCV, ID_NB_SND, RCV_STR, SN
ID_NB_RCV=ID_NB_RCV+1
RCV(ID_NB_RCV)%CL_FIELD_NAME='WW3_OWDH'
!
! wet-drying at u-location
ID_NB_RCV=ID_NB_RCV+1
RCV(ID_NB_RCV)%CL_FIELD_NAME='WW3_OWDU'
!
! wet-drying at v-location
ID_NB_RCV=ID_NB_RCV+1
RCV(ID_NB_RCV)%CL_FIELD_NAME='WW3_OWDV'
!
CASE('SSH')
! ssh : sea surface height (m)
ID_NB_RCV=ID_NB_RCV+1
RCV(ID_NB_RCV)%CL_FIELD_NAME='WW3__SSH'
!
CASE('CUR')
! uz : sea surface zonal currents (m.s-1)
ID_NB_RCV=ID_NB_RCV+1
RCV(ID_NB_RCV)%CL_FIELD_NAME='WW3_OSSU'
!
! vz : sea surface meridional currents (m.s-1)
ID_NB_RCV=ID_NB_RCV+1
RCV(ID_NB_RCV)%CL_FIELD_NAME='WW3_OSSV'
! CASE('CUR')
! ! uz : sea surface zonal currents (m.s-1)
! ID_NB_RCV=ID_NB_RCV+1
! RCV(ID_NB_RCV)%CL_FIELD_NAME='WW3_OSSU'
! !
! ! vz : sea surface meridional currents (m.s-1)
! ID_NB_RCV=ID_NB_RCV+1
! RCV(ID_NB_RCV)%CL_FIELD_NAME='WW3_OSSV'
#endif
!

!
! ATMOSPHERE MODEL VARIABLES
!
Expand Down Expand Up @@ -1144,4 +1214,3 @@ END SUBROUTINE GET_LIST_EXCH_FIELD
!/
END MODULE W3OACPMD
!/
!/ ------------------------------------------------------------------- /
Loading
Loading