Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
getm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knut Klingbeil
getm
Commits
3845e7fb
Commit
3845e7fb
authored
Feb 12, 2019
by
Knut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meteo: only process meteo region required for actual subdomain
parent
3d4c23d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
src/ncdf/ncdf_meteo.F90
src/ncdf/ncdf_meteo.F90
+17
-6
No files found.
src/ncdf/ncdf_meteo.F90
View file @
3845e7fb
...
@@ -148,14 +148,8 @@
...
@@ -148,14 +148,8 @@
"dimensions do not match"
)
"dimensions do not match"
)
end
if
end
if
il
=
ilg
;
jl
=
jlg
;
ih
=
ihg
;
jh
=
jhg
il
=
ilg
;
jl
=
jlg
;
ih
=
ihg
;
jh
=
jhg
else
il
=
1
;
jl
=
1
;
ih
=
iextr
;
jh
=
jextr
end
if
end
if
start
(
1
)
=
il
;
start
(
2
)
=
jl
;
edges
(
1
)
=
ih
-
il
+1
;
edges
(
2
)
=
jh
-
jl
+1
;
edges
(
3
)
=
1
allocate
(
beta
(
E2DFIELD
),
stat
=
err
)
allocate
(
beta
(
E2DFIELD
),
stat
=
err
)
if
(
err
/
=
0
)
&
if
(
err
/
=
0
)
&
stop
'init_meteo_input_ncdf: Error allocating memory (beta)'
stop
'init_meteo_input_ncdf: Error allocating memory (beta)'
...
@@ -174,6 +168,7 @@
...
@@ -174,6 +168,7 @@
call
to_rotated_lat_lon
(
southpole
,
olon
,
olat
,
rlon
,
rlat
,
x
)
call
to_rotated_lat_lon
(
southpole
,
olon
,
olat
,
rlon
,
rlat
,
x
)
beta
=
x
beta
=
x
end
if
end
if
il
=
1
;
jl
=
1
;
ih
=
iextr
;
jh
=
jextr
else
else
if
(
met_lat
(
1
)
.gt.
met_lat
(
2
))
then
if
(
met_lat
(
1
)
.gt.
met_lat
(
2
))
then
LEVEL3
'Reverting lat-axis and setting grid_scan to 0'
LEVEL3
'Reverting lat-axis and setting grid_scan to 0'
...
@@ -228,8 +223,21 @@
...
@@ -228,8 +223,21 @@
call
getm_error
(
"init_meteo_input_ncdf()"
,
&
call
getm_error
(
"init_meteo_input_ncdf()"
,
&
"Some interpolation coefficients are not valid"
)
"Some interpolation coefficients are not valid"
)
end
if
end
if
il
=
minval
(
gridmap
(:,:,
1
),
mask
=
(
gridmap
(:,:,
1
)
.gt.
0
))
jl
=
minval
(
gridmap
(:,:,
2
),
mask
=
(
gridmap
(:,:,
2
)
.gt.
0
))
ih
=
min
(
maxval
(
gridmap
(:,:,
1
))
+1
,
iextr
)
jh
=
min
(
maxval
(
gridmap
(:,:,
2
))
+1
,
jextr
)
where
(
gridmap
(:,:,
1
)
.gt.
0
)
gridmap
(:,:,
1
)
=
gridmap
(:,:,
1
)
-
il
+
1
where
(
gridmap
(:,:,
2
)
.gt.
0
)
gridmap
(:,:,
2
)
=
gridmap
(:,:,
2
)
-
jl
+
1
end
if
end
if
start
(
1
)
=
il
;
start
(
2
)
=
jl
;
edges
(
1
)
=
ih
-
il
+1
;
edges
(
2
)
=
jh
-
jl
+1
;
edges
(
3
)
=
1
allocate
(
d_airp
(
E2DFIELD
),
stat
=
rc
)
allocate
(
d_airp
(
E2DFIELD
),
stat
=
rc
)
if
(
rc
/
=
0
)
stop
'init_meteo_input_ncdf: Error allocating memory (d_airp)'
if
(
rc
/
=
0
)
stop
'init_meteo_input_ncdf: Error allocating memory (d_airp)'
d_airp
=
-9999
*
_
ONE_
d_airp
=
-9999
*
_
ONE_
...
@@ -1125,9 +1133,12 @@ STDERR 'grid_north_pole_longitude ',southpole(2)
...
@@ -1125,9 +1133,12 @@ STDERR 'grid_north_pole_longitude ',southpole(2)
!
!
! !LOCAL VARIABLES:
! !LOCAL VARIABLES:
integer
::
i
,
j
integer
::
i
,
j
integer
::
iextr
,
jextr
!EOP
!EOP
!-----------------------------------------------------------------------
!-----------------------------------------------------------------------
iextr
=
edges
(
1
)
;
jextr
=
edges
(
2
)
select
case
(
grid_scan
)
select
case
(
grid_scan
)
case
(
0
)
case
(
0
)
do
j
=
1
,
jextr
do
j
=
1
,
jextr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment