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 ****

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();

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;

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 ****

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);

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};

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};

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;