diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index fdf3a0a..3a44816 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -187,15 +187,15 @@ set(APP_COMMON_SRCS localoperator/Poisson.cpp localoperator/PoissonAdapter.cpp localoperator/RateAndStateBase.cpp - pc/lspoly.c + #pc/lspoly.c pc/register.cpp ) -if(${LAPACK_FOUND}) - list(APPEND APP_COMMON_SRCS - pc/eigdeflate.c - pc/reig_aux.c - ) -endif() +#if(${LAPACK_FOUND}) +# list(APPEND APP_COMMON_SRCS +# pc/eigdeflate.c +# pc/reig_aux.c +# ) +#endif() add_library(app-common ${APP_COMMON_SRCS}) target_compile_definitions(app-common PUBLIC "ALIGNMENT=${ALIGNMENT}") target_link_libraries(app-common PUBLIC diff --git a/app/common/CmdLine.h b/app/common/CmdLine.h index e9244eb..382a665 100644 --- a/app/common/CmdLine.h +++ b/app/common/CmdLine.h @@ -30,7 +30,9 @@ readFromConfigurationFileAndCmdLine(TableSchema const& schema, argparse::Argu toml::table rawCfg; try { - rawCfg = toml::parse_file(program.get(configPar)); + std::string config_path = program.get(configPar); + rawCfg = toml::parse_file(config_path); + } catch (toml::parse_error const& err) { std::cerr << "Parsing failed of " << program.get(configPar) << " failed:" << std::endl << err << std::endl; diff --git a/app/pc/register.cpp b/app/pc/register.cpp index 2d98924..0ca593e 100644 --- a/app/pc/register.cpp +++ b/app/pc/register.cpp @@ -14,14 +14,14 @@ namespace tndm { PetscErrorCode register_PCs() { PetscFunctionBegin; #ifdef HAVE_LAPACK - CHKERRQ(PCRegister("eigdeflate", PCCreate_eigdeflate)); +// CHKERRQ(PCRegister("eigdeflate", PCCreate_eigdeflate)); #endif PetscFunctionReturn(0); } PetscErrorCode register_KSPs() { PetscFunctionBegin; - CHKERRQ(KSPRegister("lspoly", KSPCreate_LSPoly)); +// CHKERRQ(KSPRegister("lspoly", KSPCreate_LSPoly)); PetscFunctionReturn(0); }