Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nektar
Nektar
Commits
3255afcf
Commit
3255afcf
authored
Jul 13, 2016
by
Kilian Lackhove
Browse files
Addressed Chris remarks
parent
a9094a81
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
3255afcf
...
...
@@ -3,6 +3,9 @@ Changelog
v4.3.3
------
**Library**
:
-
Auto-detect a shared filesystem and removed --shared-filesystem option (!654)
**Packaging**
:
-
Fix NekMesh dependencies for DEB package (!650)
...
...
library/LibUtilities/BasicUtils/SessionReader.cpp
View file @
3255afcf
...
...
@@ -322,19 +322,20 @@ namespace Nektar
{
if
(
m_comm
->
GetRank
()
==
0
)
{
std
::
ofstream
testfile
(
"shared-fs-testfile"
);
std
::
ofstream
testfile
(
"shared-fs-testfile"
);
testfile
<<
""
<<
std
::
endl
;
ASSERTL1
(
!
testfile
.
fail
(),
"Test file creation failed"
);
testfile
.
close
();
}
m_comm
->
Block
();
std
::
ifstream
testfile
(
"shared-fs-testfile"
);
int
exists
=
(
bool
)
testfile
;
int
exists
=
(
bool
)
boost
::
filesystem
::
exists
(
"shared-fs-testfile"
);
m_comm
->
AllReduce
(
exists
,
LibUtilities
::
ReduceSum
);
m_sharedFilesystem
=
(
exists
==
m_comm
->
GetSize
());
if
((
m_sharedFilesystem
&&
m_comm
->
GetRank
()
==
0
)
||
!
m_sharedFilesystem
)
if
((
m_sharedFilesystem
&&
m_comm
->
GetRank
()
==
0
)
||
!
m_sharedFilesystem
)
{
std
::
remove
(
"shared-fs-testfile"
);
}
...
...
@@ -346,7 +347,7 @@ namespace Nektar
if
(
m_verbose
&&
m_comm
->
GetRank
()
==
0
&&
m_sharedFilesystem
)
{
cout
<<
"
s
hared filesystem detected"
<<
endl
;
cout
<<
"
S
hared filesystem detected"
<<
endl
;
}
}
...
...
Kilian Lackhove
@lackhove
mentioned in commit
41fac5b1
·
Jul 13, 2016
mentioned in commit
41fac5b1
mentioned in commit 41fac5b116f56bf7619d3883c3bf9d3204374a49
Toggle commit list
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