Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
SWE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
SWE
Commits
8090ae66
Commit
8090ae66
authored
Jan 21, 2013
by
Sebastian Rettenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MPI_INCLUDED macro if compiled with MPI and netCDF
Thanks to Dmitry Mikushin for reporting this bug
parent
60d0d798
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
SConstruct
SConstruct
+3
-0
NetCdfWriter.hh
src/writer/NetCdfWriter.hh
+6
-0
No files found.
SConstruct
View file @
8090ae66
...
...
@@ -273,6 +273,9 @@ if 'libSDLDir' in env:
if
env
[
'writeNetCDF'
]
==
True
:
env
.
Append
(
CPPDEFINES
=
[
'WRITENETCDF'
])
env
.
Append
(
LIBS
=
[
'netcdf'
])
# define MPI_INCLUDED, if writeNetCDF is used together with MPI
if
env
[
'parallelization'
]
!=
'none'
and
env
[
'parallelization'
]
!=
'cuda'
:
env
.
Append
(
CPPDEFINES
=
[
'MPI_INCLUDED'
])
# set netCDF location
if
'netCDFDir'
in
env
:
env
.
Append
(
CPPPATH
=
[
env
[
'netCDFDir'
]
+
'/include'
])
...
...
src/writer/NetCdfWriter.hh
View file @
8090ae66
...
...
@@ -32,6 +32,12 @@
#include <cstring>
#include <string>
#include <vector>
// Needed for NetCDF
#ifdef USEMPI
#include <mpi.h>
#endif
#include <netcdf.h>
#include "writer/Writer.hh"
...
...
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