Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dkrz-sw
YAC
Commits
46a117c3
Commit
46a117c3
authored
2 weeks ago
by
Moritz Hanke
Browse files
Options
Downloads
Patches
Plain Diff
fixes issue in access_core example
parent
cf05130b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/access_core/access_core.F90
+20
-12
20 additions, 12 deletions
examples/access_core/access_core.F90
with
20 additions
and
12 deletions
examples/access_core/access_core.F90
+
20
−
12
View file @
46a117c3
...
...
@@ -199,18 +199,26 @@ CONTAINS
nbr_duplicated_points_
=
0
! read in grid data from SCRIP formated files
read_basic_grid
=
&
yac_read_scrip_generic_basic_grid_parallel_c
(
&
TRIM
(
grid_filename
)
//
c_null_char
,
&
TRIM
(
mask_filename
)
//
c_null_char
,
&
MPI_COMM_WORLD
,
TRIM
(
grid_name
)
//
c_null_char
,
&
INT
(
0
,
c_int
),
TRIM
(
grid_name
)
//
c_null_char
,
&
INT
(
MERGE
(
1
,
0
,
use_ll
),
c_int
),
coordinates_idx
,
&
MERGE
(
&
duplicated_point_idx_
,
c_null_ptr
,
PRESENT
(
duplicated_point_idx
)),
&
MERGE
(
&
orig_point_global_id_
,
c_null_ptr
,
PRESENT
(
orig_point_global_id
)),
&
nbr_duplicated_points_
,
point_location
)
if
(
PRESENT
(
duplicated_point_idx
)
.AND.
PRESENT
(
orig_point_global_id
))
THEN
read_basic_grid
=
&
yac_read_scrip_generic_basic_grid_parallel_c
(
&
TRIM
(
grid_filename
)
//
c_null_char
,
&
TRIM
(
mask_filename
)
//
c_null_char
,
&
MPI_COMM_WORLD
,
TRIM
(
grid_name
)
//
c_null_char
,
&
INT
(
0
,
c_int
),
TRIM
(
grid_name
)
//
c_null_char
,
&
INT
(
MERGE
(
1
,
0
,
use_ll
),
c_int
),
coordinates_idx
,
&
duplicated_point_idx_
,
orig_point_global_id_
,
&
nbr_duplicated_points_
,
point_location
)
ELSE
read_basic_grid
=
&
yac_read_scrip_generic_basic_grid_parallel_c
(
&
TRIM
(
grid_filename
)
//
c_null_char
,
&
TRIM
(
mask_filename
)
//
c_null_char
,
&
MPI_COMM_WORLD
,
TRIM
(
grid_name
)
//
c_null_char
,
&
INT
(
0
,
c_int
),
TRIM
(
grid_name
)
//
c_null_char
,
&
INT
(
MERGE
(
1
,
0
,
use_ll
),
c_int
),
coordinates_idx
,
&
c_null_ptr
,
c_null_ptr
,
nbr_duplicated_points_
,
point_location
)
END
IF
IF
(
PRESENT
(
duplicated_point_idx
))
&
duplicated_point_idx
=
duplicated_point_idx_
...
...
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