Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
mpim-sw
libcdi
Commits
36bdb420
Commit
36bdb420
authored
9 years ago
by
Thomas Jahns
Committed by
Sergey Kosukhin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use temporary variable instead of redundant query.
parent
1ab5afb9
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pio_cdf_int.c
+3
-3
3 additions, 3 deletions
src/pio_cdf_int.c
with
3 additions
and
3 deletions
src/pio_cdf_int.c
+
3
−
3
View file @
36bdb420
...
...
@@ -21,13 +21,13 @@
static
int
cdiPio_nc__create
(
const
char
*
path
,
int
cmode
,
size_t
initialsz
,
size_t
*
chunksizehintp
,
int
*
ncidp
)
{
int
status
;
if
(
cmode
&
NC_NETCDF4
&&
commInqIO
Mode
()
!=
PIO_NONE
)
int
status
,
ioMode
=
commInqIOMode
()
;
if
(
cmode
&
NC_NETCDF4
&&
io
Mode
!=
PIO_NONE
)
{
cmode
|=
NC_MPIPOSIX
;
status
=
nc_create_par
(
path
,
cmode
,
commInqCommColl
(),
MPI_INFO_NULL
,
ncidp
);
}
else
if
(
cmode
&
(
NC_64BIT_OFFSET
|
NC_CLASSIC_MODEL
)
&&
commInqIO
Mode
()
!=
PIO_NONE
)
else
if
(
cmode
&
(
NC_64BIT_OFFSET
|
NC_CLASSIC_MODEL
)
&&
io
Mode
!=
PIO_NONE
)
{
/* FIXME: improve handling of pnetcdf here */
abort
();
...
...
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