//! From ParameterListAcceptor void CubeTetMeshFactory::setParameterList(const Teuchos::RCP<Teuchos::ParameterList> & paramList) { paramList->validateParametersAndSetDefaults(*getValidParameters(),0); setMyParamList(paramList); x0_ = paramList->get<double>("X0"); y0_ = paramList->get<double>("Y0"); z0_ = paramList->get<double>("Z0"); xf_ = paramList->get<double>("Xf"); yf_ = paramList->get<double>("Yf"); zf_ = paramList->get<double>("Zf"); xBlocks_ = paramList->get<int>("X Blocks"); yBlocks_ = paramList->get<int>("Y Blocks"); zBlocks_ = paramList->get<int>("Z Blocks"); xProcs_ = paramList->get<int>("X Procs"); yProcs_ = paramList->get<int>("Y Procs"); zProcs_ = paramList->get<int>("Z Procs"); nXElems_ = paramList->get<int>("X Elements"); nYElems_ = paramList->get<int>("Y Elements"); nZElems_ = paramList->get<int>("Z Elements"); // read in periodic boundary conditions parsePeriodicBCList(Teuchos::rcpFromRef(paramList->sublist("Periodic BCs")),periodicBCVec_); }
//! From ParameterListAcceptor void SculptMeshFactory::setParameterList(const Teuchos::RCP<Teuchos::ParameterList> & paramList) { paramList->validateParametersAndSetDefaults(*getValidParameters(),0); setMyParamList(paramList); xInterval_ = paramList->get<int>("xInterval"); yInterval_ = paramList->get<int>("yInterval"); zInterval_ = paramList->get<int>("zInterval"); xMin_ = paramList->get<double>("xMin"); yMin_ = paramList->get<double>("yMin"); zMin_ = paramList->get<double>("zMin"); xMax_ = paramList->get<double>("xMax"); yMax_ = paramList->get<double>("yMax"); zMax_ = paramList->get<double>("zMax"); stlFileDir_ = paramList->get<std::string>("stlFileDir"); stlFileName_ = paramList->get<std::string>("stlFileName"); // read in periodic boundary conditions parsePeriodicBCList(Teuchos::rcpFromRef(paramList->sublist("Periodic BCs")),periodicBCVec_); }
//! From ParameterListAcceptor void CustomMeshFactory::setParameterList(const Teuchos::RCP<Teuchos::ParameterList> ¶mList) { paramList->validateParametersAndSetDefaults(*getValidParameters(),0); setMyParamList(paramList); Dimension_ = paramList->get<int>("Dimension"); NumBlocks_ = paramList->get<int>("NumBlocks"); NumNodesPerProc_ = paramList->get<int>("NumNodesPerProc"); Nodes_ = paramList->get<int*>("Nodes"); Coords_ = paramList->get<double*>("Coords"); NumElementsPerProc_ = paramList->get<int>("NumElementsPerProc"); BlockIDs_ = paramList->get<int*>("BlockIDs"); Element2Nodes_ = paramList->get<int*>("Element2Nodes"); OffsetToGlobalElementIDs_ = paramList->get<int>("OffsetToGlobalElementIDs"); // solution fields from tramonto ChargeDensity_ = paramList->get<double*>("ChargeDensity"); ElectricPotential_ = paramList->get<double*>("ElectricPotential"); // read in periodic boundary conditions parsePeriodicBCList(Teuchos::rcpFromRef(paramList->sublist("Periodic BCs")),periodicBCVec_); }
//! From ParameterListAcceptor void LineMeshFactory::setParameterList(const Teuchos::RCP<Teuchos::ParameterList> & paramList) { paramList->validateParametersAndSetDefaults(*getValidParameters(),0); setMyParamList(paramList); x0_ = paramList->get<double>("X0"); xf_ = paramList->get<double>("Xf"); xBlocks_ = paramList->get<int>("X Blocks"); nXElems_ = paramList->get<int>("X Elements"); // read in periodic boundary conditions parsePeriodicBCList(Teuchos::rcpFromRef(paramList->sublist("Periodic BCs")),periodicBCVec_); }