Changed: Remove "with grading" printout when explicit knots

This commit is contained in:
Knut Morten Okstad 2023-09-19 14:50:29 +02:00
parent f131400ec8
commit dbfb741a62
3 changed files with 11 additions and 7 deletions

View File

@ -110,11 +110,11 @@ bool SIM1D::parseGeometryTag (const TiXmlElement* elem)
for (int j : patches)
{
IFEM::cout <<"\tRefining P"<< j <<" with ";
IFEM::cout <<"\tRefining P"<< j;
if (refdata && isalpha(refdata[0]))
IFEM::cout <<"grading "<< refdata <<":";
IFEM::cout <<" with grading "<< refdata <<":";
else
IFEM::cout <<"explicit knots:";
IFEM::cout <<" with explicit knots:";
for (size_t i = 0; i < xi.size(); i++)
IFEM::cout << (i%10 || xi.size() < 11 ? " " : "\n\t") << xi[i];
IFEM::cout << std::endl;

View File

@ -146,10 +146,12 @@ bool SIM2D::parseGeometryTag (const TiXmlElement* elem)
double scale = 1.0;
utl::getAttribute(elem,"dir",dir);
utl::getAttribute(elem,"scale",scale);
const char* refdata = elem->FirstChild()->Value();
for (int j : patches)
{
IFEM::cout <<"\tRefining P"<< j <<" dir="<< dir
<<" with grading "<< elem->FirstChild()->Value() <<":";
IFEM::cout <<"\tRefining P"<< j <<" dir="<< dir;
if (refdata && isalpha(refdata[0]))
IFEM::cout <<" with grading "<< refdata <<":";
for (size_t i = 0; i < xi.size(); i++)
IFEM::cout << (i%10 || xi.size() < 11 ? " " : "\n\t") << xi[i];
IFEM::cout << std::endl;

View File

@ -135,10 +135,12 @@ bool SIM3D::parseGeometryTag (const TiXmlElement* elem)
// Non-uniform (graded) refinement
int dir = 1;
utl::getAttribute(elem,"dir",dir);
const char* refdata = elem->FirstChild()->Value();
for (int j : patches)
{
IFEM::cout <<"\tRefining P"<< j <<" dir="<< dir
<<" with grading "<< elem->FirstChild()->Value() <<":";
IFEM::cout <<"\tRefining P"<< j <<" dir="<< dir;
if (refdata && isalpha(refdata[0]))
IFEM::cout <<" with grading "<< refdata <<":";
for (size_t i = 0; i < xi.size(); i++)
IFEM::cout << (i%10 || xi.size() < 11 ? " " : "\n\t") << xi[i];
IFEM::cout << std::endl;