forked from TUM-I5/MolSim
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed default 2dRect benchmark to use xml file and removed performa…
…nce test cli option (simply always log csv file at the end, no performance overhead during simulation)
- Loading branch information
1 parent
451fc69
commit 1340473
Showing
23 changed files
with
139 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<!-- just a sanity check: body collision rewritten to xml --> | ||
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../simulation_schema.xsd"> | ||
|
||
<settings> | ||
<delta_t>0.01</delta_t> | ||
<end_time>5.0</end_time> | ||
<third_dimension>false</third_dimension> | ||
<particle_container> | ||
<directsum_container /> | ||
</particle_container> | ||
<forces> | ||
<LennardJones /> | ||
</forces> | ||
<interceptors> | ||
<ParticleUpdatesPerSecond /> | ||
</interceptors> | ||
</settings> | ||
|
||
|
||
<particle_source> | ||
</particle_source> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include <io/logger/Logger.h> | ||
|
||
#include <filesystem> | ||
#include <string> | ||
|
||
#pragma once | ||
|
||
class FileLoader { | ||
public: | ||
/** | ||
* @brief Gets the path to the data directory | ||
* | ||
* Uses the cmake target_compile_definitions PRIVATE BENCHMARK_DATA_DIR to define the path to the data directory. | ||
*/ | ||
static std::string get_benchmark_data_dir() { | ||
#ifdef BENCHMARK_DATA_DIR | ||
return BENCHMARK_DATA_DIR; | ||
#else | ||
throw std::runtime_error("Error: BENCHMARK_DATA_DIR not defined"); | ||
#endif | ||
} | ||
|
||
/** | ||
* @brief Gets the path to a file in the input directory | ||
* | ||
* @param file_name The name of the file | ||
* @return std::filesystem::path The path to the file | ||
*/ | ||
static std::filesystem::path get_input_file_path(const std::string& file_name) { return {get_benchmark_data_dir() + "/" + file_name}; } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src/io/xml_schemas/simulation_input/simulation_input_schema.xsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.