Skip to content
Snippets Groups Projects
Commit c40c5b69 authored by wenqing's avatar wenqing
Browse files

Removed changes in CLI

parent 72b39c43
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,4 @@ TARGET_LINK_LIBRARIES(ogs ...@@ -11,8 +11,4 @@ TARGET_LINK_LIBRARIES(ogs
${Boost_LIBRARIES} ${Boost_LIBRARIES}
) )
IF(OGS_USE_PETSC)
TARGET_LINK_LIBRARIES(ogs ${ogs} ${PETSC_LIBRARIES})
ENDIF()
INCLUDE(Tests.cmake) INCLUDE(Tests.cmake)
...@@ -14,10 +14,6 @@ ...@@ -14,10 +14,6 @@
#include <boost/property_tree/ptree.hpp> #include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp> #include <boost/property_tree/xml_parser.hpp>
#ifdef USE_PETSC
#include <petscksp.h>
#endif
// ThirdParty/logog // ThirdParty/logog
#include "logog/include/logog.hpp" #include "logog/include/logog.hpp"
...@@ -36,10 +32,6 @@ ...@@ -36,10 +32,6 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#ifdef USE_PETSC
char help[] = "ogs6 with PETSc \n";
PetscInitialize(&argc, &argv, nullptr, help);
#endif
using ConfigTree = boost::property_tree::ptree; using ConfigTree = boost::property_tree::ptree;
......
...@@ -54,7 +54,6 @@ int main(int argc, char *argv[]) ...@@ -54,7 +54,6 @@ int main(int argc, char *argv[])
BaseLib::RunTime run_time; BaseLib::RunTime run_time;
run_time.start(); run_time.start();
const MeshLib::Mesh* mesh = FileIO::readMeshFromFile(filename); // FileIO outputs nr. of nodes and elements const MeshLib::Mesh* mesh = FileIO::readMeshFromFile(filename); // FileIO outputs nr. of nodes and elements
run_time.stop();
if (!mesh) if (!mesh)
return 1; return 1;
......
...@@ -31,7 +31,7 @@ class CPUTime ...@@ -31,7 +31,7 @@ class CPUTime
_timer = clock(); _timer = clock();
} }
/// Get the epalsed time after started. /// Get the elapsed time after started.
double elapsed() double elapsed()
{ {
return (clock() - _timer)/static_cast<double>(CLOCKS_PER_SEC); return (clock() - _timer)/static_cast<double>(CLOCKS_PER_SEC);
......
...@@ -49,7 +49,7 @@ class RunTime ...@@ -49,7 +49,7 @@ class RunTime
#endif #endif
} }
/// Get the epalsed time after started. /// Get the elapsed time after started.
double elapsed() double elapsed()
{ {
#if defined(USE_MPI) #if defined(USE_MPI)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment