Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADIOS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Podhorszki, Norbert
ADIOS2
Commits
5dbd252d
Commit
5dbd252d
authored
7 years ago
by
William F Godoy
Browse files
Options
Downloads
Patches
Plain Diff
Fixing a bug in BP1Base root name
parent
1a94a9a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!233
Fixing a bug in BP1Base root name
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/adios2/toolkit/format/bp1/BP1Base.cpp
+10
-2
10 additions, 2 deletions
source/adios2/toolkit/format/bp1/BP1Base.cpp
with
10 additions
and
2 deletions
source/adios2/toolkit/format/bp1/BP1Base.cpp
+
10
−
2
View file @
5dbd252d
...
...
@@ -11,6 +11,9 @@
#include
"BP1Base.h"
#include
"BP1Base.tcc"
#include
<iostream>
#include
"adios2/ADIOSTypes.h"
//PathSeparator
#include
"adios2/helper/adiosFunctions.h"
//CreateDirectory, StringToTimeUnit
namespace
adios2
...
...
@@ -111,10 +114,15 @@ BP1Base::GetBPNames(const std::vector<std::string> &baseNames) const noexcept
const
int
rank
)
->
std
::
string
{
const
std
::
string
bpBaseName
=
AddExtension
(
baseName
,
".bp"
);
// path/root.bp.dir/root.bp.rank
const
std
::
string
bpRootName
=
bpBaseName
.
subst
r
(
bpBaseName
.
find_last_of
(
PathSeparator
));
std
::
string
bpRootName
=
bpBaseName
;
const
auto
lastPathSeparato
r
(
bpBaseName
.
find_last_of
(
PathSeparator
));
if
(
lastPathSeparator
!=
std
::
string
::
npos
)
{
bpRootName
=
bpBaseName
.
substr
(
lastPathSeparator
);
}
const
std
::
string
bpName
(
bpBaseName
+
".dir/"
+
bpRootName
+
"."
+
std
::
to_string
(
rank
));
return
bpName
;
...
...
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