Commit 9b5e5e01 authored by Douglas Serson's avatar Douglas Serson
Browse files

Remove duplicate messages in FieldConvert

parent 168847e7
......@@ -180,7 +180,10 @@ namespace Nektar
// and determine the full pathname to the file to write out.
// Any existing file/directory which is in the way is removed.
std::string filename = SetUpOutput(outFile);
SetUpFieldMetaData(outFile, fielddefs, fieldmetadatamap);
if (m_comm->GetSize() > 1)
{
SetUpFieldMetaData(outFile, fielddefs, fieldmetadatamap);
}
// Create the file (partition)
TiXmlDocument doc;
......
......@@ -398,21 +398,6 @@ void InputXml::Process(po::variables_map &vm)
}
}
if(m_f->m_verbose)
{
if(m_f->m_comm->GetRank() == 0)
{
timerpart.Stop();
NekDouble cpuTime = timerpart.TimePerTest(1);
stringstream ss;
ss << cpuTime << "s";
cout << "\t InputXml setexpansion CPU Time: " << setw(8) << left
<< ss.str() << endl;
timerpart.Start();
}
}
// Override number of planes with value from cmd line
if(NumHomogeneousDir == 1 && vm.count("output-points-hom-z"))
{
......
......@@ -72,7 +72,10 @@ void ProcessAddFld::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessAddFld: Adding new fld to input fld" << endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "ProcessAddFld: Adding new fld to input fld" << endl;
}
}
ASSERTL0(m_f->m_data.size() != 0,"No input data defined");
......
......@@ -85,7 +85,10 @@ void ProcessConcatenateFld::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessConcatenateFld: Concatenating field file" << endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "ProcessConcatenateFld: Concatenating field file" << endl;
}
}
std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef
......
......@@ -64,7 +64,10 @@ namespace Nektar
{
if (m_f->m_verbose)
{
cout << "ProcessDeform: Deforming grid..." << endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "ProcessDeform: Deforming grid..." << endl;
}
}
Array<OneD, MultiRegions::ExpListSharedPtr> exp(m_f->m_exp.size());
......
......@@ -126,8 +126,11 @@ namespace Utilities
{
if (m_f->m_verbose)
{
cout << "ProcessDisplacement: Calculating displacement..."
<< endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "ProcessDisplacement: Calculating displacement..."
<< endl;
}
}
string toFile = m_config["to"].as<string>();
......
......@@ -84,7 +84,10 @@ void ProcessEquiSpacedOutput::SetupEquiSpacedField(void)
if(m_f->m_verbose)
{
cout << "Interpolating fields to equispaced" << endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "Interpolating fields to equispaced" << endl;
}
}
int coordim = m_f->m_exp[0]->GetCoordim(0);
......
......@@ -66,7 +66,10 @@ void ProcessGrad::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessGrad: Calculating gradients..." << endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "ProcessGrad: Calculating gradients..." << endl;
}
}
int i, j;
......
......@@ -70,7 +70,10 @@ void ProcessHomogeneousPlane::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessHomogeneousPlane: Extracting plane..." << endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "ProcessHomogeneousPlane: Extracting plane..." << endl;
}
}
if ((m_f->m_fielddef[0]->m_numHomogeneousDir) != 1)
......
......@@ -79,7 +79,10 @@ void ProcessInnerProduct::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessInnerProduct: Evaluating inner product" << endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "ProcessInnerProduct: Evaluating inner product" << endl;
}
}
ASSERTL0(m_f->m_exp.size() != 0, "input xml file needs to be specified");
......
......@@ -79,7 +79,10 @@ void ProcessInterpField::Process(po::variables_map &vm)
if(m_f->m_verbose)
{
cout << "Processing interpolation" << endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "Processing interpolation" << endl;
}
}
m_fromField = boost::shared_ptr<Field>(new Field());
......
......@@ -73,6 +73,14 @@ void ProcessInterpPointDataToFld::Process(po::variables_map &vm)
{
int i,j;
if(m_f->m_verbose)
{
if(m_f->m_comm->GetRank() == 0)
{
cout << "Processing interp point data to fld" << endl;
}
}
// Check for command line point specification if no .pts file specified
ASSERTL0(m_f->m_fieldPts != LibUtilities::NullPtsField,
"No input points found");
......
......@@ -113,9 +113,12 @@ void ProcessInterpPoints::Process(po::variables_map &vm)
int rank = m_f->m_comm->GetRank();
int nprocs = m_f->m_comm->GetSize();
if((m_f->m_verbose)&&(rank == 0))
if(m_f->m_verbose)
{
cout << "Processing point interpolation" << endl;
if(m_f->m_comm->GetRank() == 0)
{
cout << "Processing point interpolation" << endl;
}
}
......
......@@ -68,7 +68,10 @@ void ProcessJacobianEnergy::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessJacobianEnergy: Process Jacobian fld" << endl;
if(rank == 0)
{
cout << "ProcessJacobianEnergy: Process Jacobian fld" << endl;
}
}
Array<OneD, NekDouble> phys = m_f->m_exp[0]->UpdatePhys();
......
......@@ -61,6 +61,13 @@ ProcessMapping::~ProcessMapping()
void ProcessMapping::Process(po::variables_map &vm)
{
if(m_f->m_verbose)
{
if(rank == 0)
{
cout << "Processing mapping..." << endl;
}
}
// Determine dimensions of mesh, solution, etc...
int npoints = m_f->m_exp[0]->GetNpoints();
int expdim = m_f->m_graph->GetMeshDimension();
......
......@@ -65,7 +65,10 @@ void ProcessMeanMode::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessMeanMode: Extracting mean mode..." << endl;
if(rank == 0)
{
cout << "ProcessMeanMode: Extracting mean mode..." << endl;
}
}
if (m_f->m_fielddef[0]->m_homogeneousZIDs[0] != 0)
......
......@@ -74,7 +74,11 @@ void ProcessMultiShear::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessMultiShear: Calculating shear stress metrics..." << endl;
if(rank == 0)
{
cout << "ProcessMultiShear: Calculating shear stress metrics..."
<< endl;
}
}
int nstart, i, j, nfields;
......
......@@ -65,7 +65,10 @@ void ProcessNumModes::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessNumModes: Calculating number of modes..." << endl;
if(rank == 0)
{
cout << "ProcessNumModes: Calculating number of modes..." << endl;
}
}
int i, j, s;
......
......@@ -90,7 +90,16 @@ void ProcessPointDataToFld::Process(po::variables_map &vm)
int i,j;
bool setnantovalue = false;
NekDouble defvalue;
if (m_f->m_verbose)
{
if(rank == 0)
{
cout << "ProcessPointDataToFld: projecting data to expansion..."
<< endl;
}
}
if(!boost::iequals(m_config["setnantovalue"].as<string>(),"NotSet"))
{
setnantovalue = true;
......
......@@ -66,7 +66,10 @@ void ProcessPrintFldNorms::Process(po::variables_map &vm)
{
if (m_f->m_verbose)
{
cout << "ProcessPrintFldNorms: Printing norms" << endl;
if(rank == 0)
{
cout << "ProcessPrintFldNorms: Printing norms" << endl;
}
}
// Evaluate norms and print
......
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