fix: add namespaces to example executables

This commit is contained in:
Max Lübke 2023-09-15 07:48:21 +02:00
parent 8e5c1ad035
commit 5099fd23a9
10 changed files with 38 additions and 8 deletions

View File

@ -1,5 +1,8 @@
#include <Eigen/Eigen>
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace Eigen;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
// ************** // **************
// **** GRID **** // **** GRID ****
@ -45,4 +48,4 @@ int main(int argc, char *argv[]) {
// run the simulation // run the simulation
simulation.run(); simulation.run();
} }

View File

@ -1,5 +1,8 @@
#include <Eigen/Eigen>
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace Eigen;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
// EASY_PROFILER_ENABLE; // EASY_PROFILER_ENABLE;
// profiler::startListen(); // profiler::startListen();
@ -79,4 +82,4 @@ int main(int argc, char *argv[]) {
// EASY_END_BLOCK; // EASY_END_BLOCK;
// profiler::dumpBlocksToFile("test_profile.prof"); // profiler::dumpBlocksToFile("test_profile.prof");
// profiler::stopListen(); // profiler::stopListen();
} }

View File

@ -1,5 +1,8 @@
#include <Eigen/Eigen>
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace Eigen;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
int row = 20; int row = 20;
int col = 20; int col = 20;
@ -21,4 +24,4 @@ int main(int argc, char *argv[]) {
simulation.setOutputCSV(CSV_OUTPUT_XTREME); simulation.setOutputCSV(CSV_OUTPUT_XTREME);
simulation.run(); simulation.run();
} }

View File

@ -1,6 +1,9 @@
#include "tug/Boundary.hpp" #include "tug/Boundary.hpp"
#include <Eigen/Eigen>
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace Eigen;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
// ************** // **************
// **** GRID **** // **** GRID ****
@ -44,4 +47,4 @@ int main(int argc, char *argv[]) {
// run the simulation // run the simulation
simulation.run(); simulation.run();
} }

View File

@ -6,10 +6,13 @@
* *
*/ */
#include <Eigen/Eigen>
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace Eigen;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
int row = 64; int row = 64;

View File

@ -6,7 +6,10 @@
* *
*/ */
#include <Eigen/Eigen>
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace Eigen;
// #include <easy/profiler.h> // #include <easy/profiler.h>
// #define EASY_PROFILER_ENABLE ::profiler::setEnabled(true); // #define EASY_PROFILER_ENABLE ::profiler::setEnabled(true);
@ -85,4 +88,4 @@ int main(int argc, char *argv[]) {
// EASY_END_BLOCK; // EASY_END_BLOCK;
// profiler::dumpBlocksToFile("test_profile.prof"); // profiler::dumpBlocksToFile("test_profile.prof");
// profiler::stopListen(); // profiler::stopListen();
} }

View File

@ -6,8 +6,11 @@
* *
*/ */
#include <Eigen/Eigen>
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace Eigen;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
// ************** // **************

View File

@ -1,9 +1,13 @@
#include <Eigen/Eigen>
#include <chrono> #include <chrono>
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace Eigen;
using namespace std;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
int n[] = {2000}; int n[] = {2000};
@ -63,4 +67,4 @@ int main(int argc, char *argv[]) {
} }
myfile.close(); myfile.close();
} }
} }

View File

@ -1,9 +1,13 @@
#include <Eigen/Eigen>
#include <chrono> #include <chrono>
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace Eigen;
using namespace std;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
int n[] = {2000}; int n[] = {2000};
@ -63,4 +67,4 @@ int main(int argc, char *argv[]) {
} }
myfile.close(); myfile.close();
} }
} }

View File

@ -3,6 +3,7 @@
#include <tug/Simulation.hpp> #include <tug/Simulation.hpp>
using namespace std; using namespace std;
using namespace Eigen;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
int row = 50; int row = 50;
@ -48,4 +49,4 @@ int main(int argc, char *argv[]) {
// RUN // RUN
sim.run(); sim.run();
} }