Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Nemo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Hatfield
Nemo
Commits
87b2c6a4
Commit
87b2c6a4
authored
3 years ago
by
Sebastien MASSON
Browse files
Options
Downloads
Patches
Plain Diff
fix
#27
, NP folding for wind prescribed on geographical grid
parent
cf80ead5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OCE/SBC/fldread.F90
+7
-2
7 additions, 2 deletions
src/OCE/SBC/fldread.F90
with
7 additions
and
2 deletions
src/OCE/SBC/fldread.F90
+
7
−
2
View file @
87b2c6a4
...
...
@@ -355,6 +355,7 @@ CONTAINS
INTEGER
::
iw
! index into wgts array
INTEGER
::
idvar
! variable ID
INTEGER
::
idmspc
! number of spatial dimensions
REAL
(
wp
)
::
zsgn
! sign used in the call to lbc_lbk called by iom_get
REAL
(
wp
),
DIMENSION
(:,:,:),
POINTER
::
dta_alias
! short cut
!!---------------------------------------------------------------------
iaa
=
sdjf
%
naa
...
...
@@ -364,19 +365,23 @@ CONTAINS
ENDIF
ipk
=
SIZE
(
dta_alias
,
3
)
!
IF
(
LEN_TRIM
(
sdjf
%
vcomp
)
>
0
)
THEN
;
zsgn
=
1._wp
! geographical vectors -> sign change done later when rotating
ELSE
;
zsgn
=
sdjf
%
zsgn
ENDIF
!
IF
(
ASSOCIATED
(
sdjf
%
imap
)
)
THEN
! BDY case
CALL
fld_map
(
sdjf
%
num
,
sdjf
%
clvar
,
dta_alias
(:,:,:),
sdjf
%
nrec
(
1
,
iaa
),
&
&
sdjf
%
imap
,
sdjf
%
igrd
,
sdjf
%
ibdy
,
sdjf
%
ltotvel
,
sdjf
%
lzint
,
Kmm
)
ELSE
IF
(
LEN
(
TRIM
(
sdjf
%
wgtname
))
>
0
)
THEN
! On-the-fly interpolation
CALL
wgt_list
(
sdjf
,
iw
)
CALL
fld_interp
(
sdjf
%
num
,
sdjf
%
clvar
,
iw
,
ipk
,
dta_alias
(:,:,:),
sdjf
%
nrec
(
1
,
iaa
),
sdjf
%
lsmname
)
CALL
lbc_lnk
(
'fldread'
,
dta_alias
(:,:,:),
sdjf
%
cltype
,
sdjf
%
zsgn
,
kfillmode
=
jpfillcopy
)
CALL
lbc_lnk
(
'fldread'
,
dta_alias
(:,:,:),
sdjf
%
cltype
,
zsgn
,
kfillmode
=
jpfillcopy
)
ELSE
! default case
idvar
=
iom_varid
(
sdjf
%
num
,
sdjf
%
clvar
)
idmspc
=
iom_file
(
sdjf
%
num
)
%
ndims
(
idvar
)
IF
(
iom_file
(
sdjf
%
num
)
%
luld
(
idvar
)
)
idmspc
=
idmspc
-
1
! id of the last spatial dimension
CALL
iom_get
(
sdjf
%
num
,
jpdom_global
,
sdjf
%
clvar
,
dta_alias
(:,:,:),
sdjf
%
nrec
(
1
,
iaa
),
&
&
sdjf
%
cltype
,
sdjf
%
zsgn
,
kfill
=
jpfillcopy
)
&
sdjf
%
cltype
,
zsgn
,
kfill
=
jpfillcopy
)
ENDIF
!
sdjf
%
rotn
(
iaa
)
=
.false.
! vector not yet rotated
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment