diff --git a/README.md b/README.md index 1296274..e1b5ee0 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Geotechnical problems have been traditionally tackled as an extension of continuum mechanics theories. Such an approach, although appropriate for systems undergoing small displacements, cannot examine important problems such as landslides, rockfalls, and rainfall-induced landslides. Our implementation is a first step toward analyzing these complex behavior, and, as a starting point, studies systems constituted of geomaterials assumed as particles in a two-dimensional space. With this implementation, we plan to bring to the geotechnical community, academic and practitioners in general, a computational tool that will allow solving challenges involving multiphysics and large displacements effectively and accurately. +![Simulation](https://raw.githubusercontent.com/eafit-apolo/2DPartInt/master/simulacion.gif) + ## Usage Compile the project using make. @@ -39,7 +41,7 @@ Compile defining the `PROFILING` flag. $ make PROFILING=true ``` -Run definig where to store the profiler output. +Run defining where to store the profiler output. ``` $ CPUPROFILE=profiler_out.prof ./bin/2DPartInt simulation_config.txt out/ diff --git a/include/config.h b/include/config.h index e6b07d3..6fad5bc 100644 --- a/include/config.h +++ b/include/config.h @@ -4,7 +4,7 @@ * Represents the parsed config file. */ typedef struct { - int simulation_time; + double simulation_time; double dt; int x_limit; int y_limit; diff --git a/simulacion.gif b/simulacion.gif new file mode 100644 index 0000000..601f90a Binary files /dev/null and b/simulacion.gif differ diff --git a/src/cpp/config.cpp b/src/cpp/config.cpp index 761e7e6..2e933fc 100644 --- a/src/cpp/config.cpp +++ b/src/cpp/config.cpp @@ -26,7 +26,7 @@ void parse_config(const char *filename, Config *config) { if (std::getline(is_line, key, '=')) { if (std::getline(is_line, value)) { if (key == "time") { - config->simulation_time = std::stoi(value); + config->simulation_time = std::stod(value); } else if (key == "dt") { config->dt = std::stod(value); } else if (key == "y_limit") {