Commit 19b85a78 authored by Kilian Lackhove's avatar Kilian Lackhove
Browse files

removed unused PtsIO::Write and Import

parent 6e755138
......@@ -54,55 +54,6 @@ namespace Nektar
namespace LibUtilities
{
void Import(const string &inFile, PtsFieldSharedPtr &ptsField)
{
#ifdef NEKTAR_USE_MPI
int size;
int init;
MPI_Initialized(&init);
// If MPI has been initialised we can check the number of processes
// and, if > 1, tell the user he should not be running this
// function in parallel. If it is not initialised, we do not
// initialise it here, and assume the user knows what they are
// doing.
if (init)
{
MPI_Comm_size(MPI_COMM_WORLD, &size);
ASSERTL0(size == 1,
"This static function is not available in parallel. Please "
"instantiate a FieldIO object for parallel use.");
}
#endif
CommSharedPtr c = GetCommFactory().CreateInstance("Serial", 0, 0);
PtsIO p(c);
p.Import(inFile, ptsField);
}
void Write(const string &outFile, const PtsFieldSharedPtr &ptsField)
{
#ifdef NEKTAR_USE_MPI
int size;
int init;
MPI_Initialized(&init);
// If MPI has been initialised we can check the number of processes
// and, if > 1, tell the user he should not be running this
// function in parallel. If it is not initialised, we do not
// initialise it here, and assume the user knows what they are
// doing.
if (init)
{
MPI_Comm_size(MPI_COMM_WORLD, &size);
ASSERTL0(size == 1,
"This static function is not available in parallel. Please "
"instantiate a FieldIO object for parallel use.");
}
#endif
CommSharedPtr c = GetCommFactory().CreateInstance("Serial", 0, 0);
PtsIO p(c);
p.Write(outFile, ptsField);
}
PtsIO::PtsIO(CommSharedPtr pComm, bool sharedFilesystem)
: FieldIOXml(pComm, sharedFilesystem)
......
......@@ -61,12 +61,6 @@ using namespace std;
typedef std::map<std::string, std::string> PtsMetaDataMap;
static PtsMetaDataMap NullPtsMetaDataMap;
LIB_UTILITIES_EXPORT void Import(const string &inFile,
PtsFieldSharedPtr &ptsField);
LIB_UTILITIES_EXPORT void Write(const string &outFile,
const PtsFieldSharedPtr &ptsField);
class PtsIO : public FieldIOXml
{
public:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment