55         fprintf(stderr,
"Usage: XmlToTecplot meshfile\n");
 
   59     LibUtilities::SessionReader::RegisterCmdLineFlag(
 
   60         "multi-zone", 
"m", 
"Output multi-zone format (one element per zone).");
 
   63             = LibUtilities::SessionReader::CreateInstance(argc, argv);
 
   67     string meshfile(argv[argc-1]);
 
   69         = SpatialDomains::MeshGraph::Read(vSession);
 
   77     for (it = emap.begin(); it != emap.end(); ++it)
 
   79         for (
int i = 0; i < it->second->m_basisKeyVector.size(); ++i)
 
   93     int expdim  = graphShPt->GetMeshDimension();
 
  107             if(vSession->DefinesSolverInfo(
"HOMOGENEOUS"))
 
  109                 std::string HomoStr = vSession->GetSolverInfo(
"HOMOGENEOUS");
 
  113                     HomoStr == 
"HOMOGENEOUS1D" || HomoStr == 
"Homogeneous1D" ||
 
  114                     HomoStr == 
"1D"            || HomoStr == 
"Homo1D",
 
  115                     "Only 3DH1D supported for XML output currently.");
 
  118                 vSession->LoadParameter(
"HomModesZ", nplanes);
 
  126                 NekDouble lz = vSession->GetParameter(
"LZ");
 
  130                         vSession, Bkey, lz, 
false, 
false, graphShPt);
 
  149             ASSERTL0(
false,
"Expansion dimension not recognised");
 
  157     string   outfile(strtok(argv[argc-1],
"."));
 
  159     ofstream outstrm(outfile.c_str());
 
  161     Exp[0]->WriteTecplotHeader(outstrm);
 
  163     if (vSession->DefinesCmdLineArgument(
"multi-zone"))
 
  165         int nExp = Exp[0]->GetExpSize();
 
  167         for (
int i = 0; i < nExp; ++i)
 
  169             Exp[0]->WriteTecplotZone        (outstrm, i);
 
  170             Exp[0]->WriteTecplotConnectivity(outstrm, i);
 
  175         Exp[0]->WriteTecplotZone        (outstrm);
 
  176         Exp[0]->WriteTecplotConnectivity(outstrm);
 
#define ASSERTL0(condition, msg)
 
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
 
BasisType GetBasisType() const 
Return type of expansion basis. 
 
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
 
1D Evenly-spaced points using Lagrange polynomial 
 
boost::shared_ptr< ExpList1D > ExpList1DSharedPtr
Shared pointer to an ExpList1D object. 
 
Defines a specification for a set of points. 
 
boost::shared_ptr< ExpList2D > ExpList2DSharedPtr
Shared pointer to an ExpList2D object. 
 
boost::shared_ptr< ExpList3D > ExpList3DSharedPtr
Shared pointer to an ExpList3D object. 
 
PointsKey GetPointsKey() const 
Return distribution of points. 
 
boost::shared_ptr< ExpList3DHomogeneous1D > ExpList3DHomogeneous1DSharedPtr
Shared pointer to an ExpList3DHomogeneous1D object. 
 
int GetNumModes() const 
Returns the order of the basis. 
 
boost::shared_ptr< MeshGraph > MeshGraphSharedPtr
 
Describes the specification for a Basis. 
 
std::map< int, ExpansionShPtr > ExpansionMap
 
std::map< int, ExpansionShPtr >::iterator ExpansionMapIter