Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Nektar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
87
Issues
87
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
44
Merge Requests
44
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
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nektar
Nektar
Commits
f50d742e
Commit
f50d742e
authored
Feb 26, 2016
by
Dave Moxey
Committed by
Spencer Sherwin
Mar 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address Douglas' and Spencer's comments
parent
12c0a0fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
library/LibUtilities/BasicUtils/FieldIO.cpp
library/LibUtilities/BasicUtils/FieldIO.cpp
+3
-10
No files found.
library/LibUtilities/BasicUtils/FieldIO.cpp
View file @
f50d742e
...
...
@@ -1146,17 +1146,10 @@ namespace Nektar
int
nprocs
=
m_comm
->
GetSize
();
int
rank
=
m_comm
->
GetRank
();
// Directory name if in parallel, regular filename if in serial
// Path to output: will be directory if parallel, normal file if
// serial.
fs
::
path
specPath
(
outname
);
// Pad rank to 8char filenames, e.g. P0000000.fld
boost
::
format
pad
(
"P%1$07d.fld"
);
pad
%
m_comm
->
GetRank
();
// Generate full path name
fs
::
path
poutfile
(
pad
.
str
());
fs
::
path
fulloutname
=
specPath
/
poutfile
;
if
(
nprocs
==
1
)
{
fulloutname
=
specPath
;
...
...
@@ -1235,7 +1228,7 @@ namespace Nektar
// Create the destination directory
try
{
if
(
(
m_sharedFilesystem
&&
rank
==
0
)
||
!
m_sharedFilesystem
)
if
(
rank
==
0
||
!
m_sharedFilesystem
)
{
fs
::
create_directory
(
specPath
);
}
...
...
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