Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Julia Docampo Sanchez
Nektar
Commits
08375931
Commit
08375931
authored
Jul 11, 2017
by
Kilian Lackhove
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interpptstopts: support for frompts being a csv file
parent
a990d43c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
library/FieldUtils/ProcessModules/ProcessInterpPtsToPts.cpp
library/FieldUtils/ProcessModules/ProcessInterpPtsToPts.cpp
+19
-3
No files found.
library/FieldUtils/ProcessModules/ProcessInterpPtsToPts.cpp
View file @
08375931
...
...
@@ -43,6 +43,8 @@ using namespace std;
#include <LibUtilities/BasicUtils/ParseUtils.hpp>
#include <LibUtilities/BasicUtils/Progressbar.hpp>
#include <LibUtilities/BasicUtils/SharedArray.hpp>
#include <LibUtilities/BasicUtils/PtsIO.h>
#include <LibUtilities/BasicUtils/CsvIO.h>
#include <boost/lexical_cast.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
...
...
@@ -133,10 +135,24 @@ void ProcessInterpPtsToPts::CreateFieldPts(po::variables_map &vm)
{
string
inFile
=
m_config
[
"topts"
].
as
<
string
>
();
LibUtilities
::
PtsIOSharedPtr
ptsIO
=
MemoryManager
<
LibUtilities
::
PtsIO
>::
AllocateSharedPtr
(
m_f
->
m_comm
);
if
(
boost
::
filesystem
::
path
(
inFile
).
extension
()
==
".pts"
)
{
LibUtilities
::
PtsIOSharedPtr
ptsIO
=
MemoryManager
<
LibUtilities
::
PtsIO
>::
AllocateSharedPtr
(
m_f
->
m_comm
);
ptsIO
->
Import
(
inFile
,
m_f
->
m_fieldPts
);
}
else
if
(
boost
::
filesystem
::
path
(
inFile
).
extension
()
==
".csv"
)
{
LibUtilities
::
CsvIOSharedPtr
csvIO
=
MemoryManager
<
LibUtilities
::
CsvIO
>::
AllocateSharedPtr
(
m_f
->
m_comm
);
ptsIO
->
Import
(
inFile
,
m_f
->
m_fieldPts
);
csvIO
->
Import
(
inFile
,
m_f
->
m_fieldPts
);
}
else
{
ASSERTL0
(
false
,
"unknown topts file type"
);
}
}
else
if
(
m_config
[
"line"
].
as
<
string
>
().
compare
(
"NotSet"
)
!=
0
)
{
...
...
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