diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..e69de29 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0369c1a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM ubuntu:24.04 +WORKDIR /usr/local/app + +COPY main.cpp ./ + +RUN apt-get update && apt-get install -y gcc g++ +RUN g++ main.cpp -o main diff --git a/main.cpp b/main.cpp index 7588360..27eb696 100644 --- a/main.cpp +++ b/main.cpp @@ -1,39 +1,39 @@ -//#include "fem/fem.hpp" -//#include "flatset/flatset.hpp" -//#include "filesystem/filesystem.hpp" -//#include "yamlParser/yamlParser.hpp" +// #include "fem/fem.hpp" +#include "flatset/flatset.hpp" +// #include "filesystem/filesystem.hpp" +// #include "yamlParser/yamlParser.hpp" #include int main(int argc, char *argv[]) { - std::cout << "Let's fight with CMake, Docker, and some dependencies!" << std::endl << std::endl; + std::cout << "Let's fight with CMake, Docker, and some dependencies!" << std::endl + << std::endl; - //std::cout << "Solve Poisson problem with FEM using deal.II" << std::endl; - //Fem fem; - //fem.run(); - //std::cout << std::endl; + // std::cout << "Solve Poisson problem with FEM using deal.II" << std::endl; + // Fem fem; + // fem.run(); + // std::cout << std::endl; - //std::cout << "Modify a flat set using boost container" << std::endl; - //modifyAndPrintSets(); - //std::cout << std::endl; + std::cout << "Modify a flat set using boost container" << std::endl; + modifyAndPrintSets(); + std::cout << std::endl; - //std::cout << "Inspect the current directory using boost filesystem" << std::endl; - //inspectDirectory(); - //std::cout << std::endl; + // std::cout << "Inspect the current directory using boost filesystem" << std::endl; + // inspectDirectory(); + // std::cout << std::endl; - - //if ( argc == 2 ) + // if ( argc == 2 ) //{ - // const std::string yamlFile( argv[1] ); - // std::cout << "Parse some yaml file with yaml-cpp" << std::endl; - // std::cout << " " << yamlFile << std::endl; - // parseConfig( yamlFile ); - //} - //else + // const std::string yamlFile( argv[1] ); + // std::cout << "Parse some yaml file with yaml-cpp" << std::endl; + // std::cout << " " << yamlFile << std::endl; + // parseConfig( yamlFile ); + // } + // else //{ - // std::cout << "To parse a yaml file please specify file on command line" << std::endl; - // std::cout << " ./main YAMLFILE" << std::endl; - //} + // std::cout << "To parse a yaml file please specify file on command line" << std::endl; + // std::cout << " ./main YAMLFILE" << std::endl; + // } return 0; }