Commit f4294ce9 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[test][examples] speed-up test time

parent 33a531a9
frackit_add_test(NAME example1 frackit_add_test(NAME example1
SOURCES example1.cc SOURCES example1.cc
LABELS example) LABELS example
CMD_ARGS 5)
frackit_symlink_or_copy(FILES example1.py) frackit_symlink_or_copy(FILES example1.py)
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <frackit/entitynetwork/networkbuilder.hh> #include <frackit/entitynetwork/networkbuilder.hh>
//! create a network of 3d quadrilaterals //! create a network of 3d quadrilaterals
int main() int main(int argc, char** argv)
{ {
using namespace Frackit; using namespace Frackit;
...@@ -85,8 +85,8 @@ int main() ...@@ -85,8 +85,8 @@ int main()
// use the status class to define when to stop sampling // use the status class to define when to stop sampling
SamplingStatus status; SamplingStatus status;
status.setTargetCount(idSet1, 15); // we want 15 entities in set 1 status.setTargetCount(idSet1, argc > 1 ? std::stoi(argv[1]) : 15); // per default, we want 15 entities in set 1
status.setTargetCount(idSet2, 15); // we want 15 entities in set 2 status.setTargetCount(idSet2, argc > 1 ? std::stoi(argv[1]) : 15); // per default, we want 15 entities in set 2
// start sampling into set 1 and keep alternating // start sampling into set 1 and keep alternating
bool sampleIntoSet1 = true; bool sampleIntoSet1 = true;
......
frackit_add_test(NAME example2 frackit_add_test(NAME example2
SOURCES example2.cc SOURCES example2.cc
LABELS example) LABELS example
CMD_ARGS 5)
frackit_symlink_or_copy(FILES example2.py) frackit_symlink_or_copy(FILES example2.py)
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <frackit/entitynetwork/networkbuilder.hh> #include <frackit/entitynetwork/networkbuilder.hh>
//! create a network of 3d quadrilaterals contained in a cylinder //! create a network of 3d quadrilaterals contained in a cylinder
int main() int main(int argc, char** argv)
{ {
using namespace Frackit; using namespace Frackit;
...@@ -71,8 +71,8 @@ int main() ...@@ -71,8 +71,8 @@ int main()
const Id idSet2(2); const Id idSet2(2);
SamplingStatus status; SamplingStatus status;
status.setTargetCount(idSet1, 12); status.setTargetCount(idSet1, argc > 1 ? std::stoi(argv[1]) : 12);
status.setTargetCount(idSet2, 12); status.setTargetCount(idSet2, argc > 1 ? std::stoi(argv[1]) : 12);
bool sampleIntoSet1 = true; bool sampleIntoSet1 = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment