Commit da5add92 authored by Douglas Serson's avatar Douglas Serson
Browse files

Tidy input modules

parent bbaa9dfc
......@@ -53,7 +53,7 @@ ModuleKey InputDat::m_className[1] = {
GetModuleFactory().RegisterCreatorFunction(
ModuleKey(eInputModule, "dat"),
InputDat::create,
"Reads Tecplot dat file for FE block triangular format."),
"Reads Tecplot dat file for FE block triangular format.")
};
/**
......
......@@ -40,9 +40,6 @@ using namespace std;
#include "InputFld.h"
using namespace Nektar;
static std::string npts = LibUtilities::SessionReader::RegisterCmdLineArgument(
"NumberOfPoints", "n", "Define number of points to dump output");
namespace Nektar
{
namespace FieldUtils
......@@ -50,17 +47,18 @@ namespace FieldUtils
ModuleKey InputFld::m_className[4] = {
GetModuleFactory().RegisterCreatorFunction(
ModuleKey(eInputModule, "fld"), InputFld::create, "Reads Fld file."),
GetModuleFactory().RegisterCreatorFunction(ModuleKey(eInputModule, "chk"),
InputFld::create,
"Reads checkpoint file."),
GetModuleFactory().RegisterCreatorFunction(ModuleKey(eInputModule, "rst"),
InputFld::create,
"Reads restart file."),
ModuleKey(eInputModule, "fld"),
InputFld::create, "Reads Fld file."),
GetModuleFactory().RegisterCreatorFunction(
ModuleKey(eInputModule, "chk"),
InputFld::create, "Reads checkpoint file."),
GetModuleFactory().RegisterCreatorFunction(
ModuleKey(eInputModule, "rst"),
InputFld::create, "Reads restart file."),
GetModuleFactory().RegisterCreatorFunction(
ModuleKey(eInputModule, "bse"),
InputFld::create,
"Reads stability base-flow file.")};
InputFld::create, "Reads stability base-flow file.")
};
/**
* @brief Set up InputFld object.
......@@ -120,7 +118,7 @@ void InputFld::Process(po::variables_map &vm)
const SpatialDomains::ExpansionMap &expansions =
m_f->m_graph->GetExpansions();
// if Range has been speficied it is possible to have a
// if Range has been specified it is possible to have a
// partition which is empty so check this and return if
// no elements present.
......
......@@ -238,7 +238,8 @@ void InputNek5000::Process(po::variables_map &vm)
case ' ':
continue;
default:
cerr << "Field contains unknown variable: " << remain[i] << endl;
cerr << "Field contains unknown variable: "
<< remain[i] << endl;
abort();
}
}
......
......@@ -53,7 +53,7 @@ ModuleKey InputPts::m_className[5] = {
GetModuleFactory().RegisterCreatorFunction(
ModuleKey(eInputModule, "pts"), InputPts::create, "Reads Pts file."),
GetModuleFactory().RegisterCreatorFunction(
ModuleKey(eInputModule, "pts.gz"), InputPts::create, "Reads Pts file."),
ModuleKey(eInputModule, "pts.gz"), InputPts::create, "Reads Pts file.")
};
/**
......
......@@ -43,9 +43,6 @@ using namespace std;
#include "InputXml.h"
using namespace Nektar;
static std::string npts = LibUtilities::SessionReader::RegisterCmdLineArgument(
"NumberOfPoints", "n", "Define number of points to dump output");
namespace Nektar
{
namespace FieldUtils
......@@ -66,9 +63,6 @@ InputXml::InputXml(FieldSharedPtr f) : InputModule(f)
{
m_allowedFiles.insert("xml");
m_allowedFiles.insert("xml.gz");
m_allowedFiles.insert("fld"); // these files could be allowed with xml files
m_allowedFiles.insert("chk");
m_allowedFiles.insert("rst");
}
/**
......
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