24 #ifdef HAVE_FEI_AZTECOO
31 #define fei_file "test_Factory.cpp"
64 #ifdef HAVE_FEI_AZTECOO
97 if (vecspace.
get() == 0) {
99 throw std::runtime_error(
"factory failed to create a fei::VectorSpace");
110 throw std::runtime_error(
"vecspace->defineFields/getNumFields failed.");
121 int err = fei->
initFields(1, &fieldSize, &fieldID);
124 throw std::runtime_error(
"fei->initFields() failed.");
127 int testFieldSize = -1;
129 if (err != 0 || testFieldSize != fieldSize) {
131 throw std::runtime_error(
"fei->getFieldSize() failed.");
void defineFields(int numFields, const int *fieldIDs, const int *fieldSizes, const int *fieldTypes=NULL)
virtual fei::SharedPtr< VectorSpace > createVectorSpace(MPI_Comm, const char *name)
virtual int initFields(int numFields, const int *fieldSizes, const int *fieldIDs, const int *fieldTypes=NULL)=0
virtual int getFieldSize(int fieldID, int &numScalars)=0
virtual fei::SharedPtr< Factory > clone() const =0
test_Factory(MPI_Comm comm)
virtual fei::SharedPtr< FEI > createFEI(fei::SharedPtr< LibraryWrapper > wrapper, MPI_Comm comm)
void factory_test1(fei::SharedPtr< fei::Factory > factory)