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
9d16b105
Commit
9d16b105
authored
Jul 13, 2012
by
breuera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added time independent file name generation.
parent
cc20f5e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
help.hh
src/tools/help.hh
+19
-0
No files found.
src/tools/help.hh
View file @
9d16b105
...
...
@@ -151,6 +151,25 @@ inline std::string generateFileName(std::string baseName, int timeStep) {
return
FileName
.
str
();
};
/**
* Generates an output file name for a multiple SWE_Block version based on the ordering of the blocks.
*
* @param i_baseName base name of the output.
* @param i_blockPositionX position of the SWE_Block in x-direction.
* @param i_blockPositionY position of the SWE_Block in y-direction.
* @param i_fileExtension file extension of the output file.
* @return
*/
inline
std
::
string
generateFileName
(
std
::
string
i_baseName
,
int
i_blockPositionX
,
int
i_blockPositionY
,
std
::
string
i_fileExtension
=
".nc"
)
{
std
::
ostringstream
l_fileName
;
l_fileName
<<
i_baseName
<<
"_"
<<
i_blockPositionX
<<
i_blockPositionY
<<
i_fileExtension
;
return
l_fileName
.
str
();
};
/**
* generate output filename for the multiple-SWE_Block version
* (for serial and parallel (OpenMP and MPI) versions that use
...
...
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