20 #ifdef HAVE_FEI_AZTECOO
25 #include <FETI_DP_FiniteElementData.h>
31 const char* libraryName)
33 std::string libname(libraryName);
39 if (libname ==
"Aztec") {
40 #ifdef HAVE_FEI_AZTECOO
43 std::string msg(
"Aztec not available.");
44 throw std::runtime_error(msg);
48 if (libname ==
"FETI") {
50 fedata.
reset(
new FETI_DP_FiniteElementData(comm));
54 if (lsc.
get() == NULL && fedata.
get() == NULL) {
56 std::string msg(
"create_LibraryWrapper: ");
58 msg +=
" not a valid name.";
59 throw std::runtime_error(msg);
62 if (lsc.
get() != NULL) {
67 if (fedata.
get() != NULL) {
78 const char* libraryName)
80 std::string libname(libraryName);
82 if (libname.find(
"Trilinos") != std::string::npos) {
85 if (libname.find(
"Amesos") != std::string::npos) {
90 else if (libname.find(
"Aztec") != std::string::npos) {
96 if (libname.find(
"AztecOO") != std::string::npos) {
111 catch (std::runtime_error& exc) {
112 std::string msg(
"create_fei_Factory: ");
114 throw std::runtime_error(msg);
117 if (wrapper.
get() != NULL) {
fei::SharedPtr< fei::Factory > create_fei_Factory(MPI_Comm comm, const char *libraryName)
virtual void parameters(const fei::ParameterSet ¶mset)
void add(const Param ¶m, bool maintain_unique_keys=true)
fei::SharedPtr< LibraryWrapper > create_LibraryWrapper(MPI_Comm comm, const char *libraryName)