diff --git a/.gitignore b/.gitignore index df134f3d8f4289b954a8b3f7bfbc138b6be6f80e..82c6dcbe5cfa0e301cfcbb934b3e5c4783e3b545 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,7 @@ # build directories -buildDev/ build/ -buildDev/ bin/ cmake-build-debug/ -MSVC2017/ -VS2017/ run/ # Python @@ -25,6 +21,3 @@ output/ # MacOS .DS_Store - -#Cluster -run/ diff --git a/CMakeLists.txt b/CMakeLists.txt index d74febdac96544fa6f50b65602392d3c44a5ca10..a5aea2effb3dd93b67b80b41c284107a6ac4e4cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ cmake_minimum_required(VERSION 3.15..3.20 FATAL_ERROR) project(VirtualFluids CXX) -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set_property(GLOBAL PROPERTY USE_FOLDERS ON) diff --git a/apps/cpu/BoxBenchmark/bb.cpp b/apps/cpu/BoxBenchmark/bb.cpp index 547e654b35096e66e9400b16ad5a01be024ed2c5..719df7738df87e2b310aa03332fb2a3ef8f2ffe6 100644 --- a/apps/cpu/BoxBenchmark/bb.cpp +++ b/apps/cpu/BoxBenchmark/bb.cpp @@ -14,7 +14,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getValue<string>("pathname"); diff --git a/apps/cpu/CheckpointConverter/cpc.cpp b/apps/cpu/CheckpointConverter/cpc.cpp index 1ef1ad8f4ead0330620713fea61fb1ae51f5bbd5..c26e7df4c682e1c5214d15644c57d52ac7d8413a 100644 --- a/apps/cpu/CheckpointConverter/cpc.cpp +++ b/apps/cpu/CheckpointConverter/cpc.cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string path = config.getString("path"); diff --git a/apps/cpu/CouetteFlow/cflow.cpp b/apps/cpu/CouetteFlow/cflow.cpp index 2ac32915a9348021acb2ff6e5ee70b24a8dedeb6..e37bafade742c42601fdeb66cfa45ca516097ff3 100644 --- a/apps/cpu/CouetteFlow/cflow.cpp +++ b/apps/cpu/CouetteFlow/cflow.cpp @@ -10,7 +10,7 @@ void bflow(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getValue<string>("pathname"); diff --git a/apps/cpu/DHIT/dhit.cpp b/apps/cpu/DHIT/dhit.cpp index 7eb78c37ee35d99af6ac9ca665beba023896290f..957c823ef664e4dd19df45fa322e93a8c8164bb7 100644 --- a/apps/cpu/DHIT/dhit.cpp +++ b/apps/cpu/DHIT/dhit.cpp @@ -12,7 +12,7 @@ void run(string configname) { //Sleep(30000); - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/DLR-F16-Porous/f16.cpp b/apps/cpu/DLR-F16-Porous/f16.cpp index 422c2dead86796d935fb73b8a16ebf94db53df71..9197aca45bbfed9be817fbcb83db4973e4a58f87 100644 --- a/apps/cpu/DLR-F16-Porous/f16.cpp +++ b/apps/cpu/DLR-F16-Porous/f16.cpp @@ -53,7 +53,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathOut = config.getValue<string>("pathOut"); @@ -207,7 +207,8 @@ void run(string configname) bcProc = SPtr<BCProcessor>(new ThinWallBCProcessor()); SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new CompressibleCumulant4thOrderViscosityLBMKernel()); - //t = 21.8, P = 1.0145 atm, Relative Humidity = 45.8, Second Coefficient of Viscosity = 3120 //Ash, R. L., Zuckerwar, A. J., & Zheng, Z. (1991). Second coefficient of viscosity in air. + //t = 21.8, P = 1.0145 atm, Relative Humidity = 45.8, Second Coefficient of Viscosity = 3120 + //Ash, R. L., Zuckerwar, A. J., & Zheng, Z. (1991). Second coefficient of viscosity in air. double bulckViscosity = 3120 * nuLB; dynamicPointerCast<CompressibleCumulant4thOrderViscosityLBMKernel>(kernel)->setBulkViscosity(bulckViscosity); kernel->setBCProcessor(bcProc); diff --git a/apps/cpu/DLR-F16-Solid/f16.cpp b/apps/cpu/DLR-F16-Solid/f16.cpp index 99983c3c3fd4171e1feb0ea5635805e019a25d44..d88b650b143793b67388f920bd2e23c380af0e5a 100644 --- a/apps/cpu/DLR-F16-Solid/f16.cpp +++ b/apps/cpu/DLR-F16-Solid/f16.cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathOut = config.getValue<string>("pathOut"); @@ -169,7 +169,8 @@ void run(string configname) bcProc = SPtr<BCProcessor>(new BCProcessor()); SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new CompressibleCumulant4thOrderViscosityLBMKernel()); - //t = 21.8, P = 1.0145 atm, Relative Humidity = 45.8, Second Coefficient of Viscosity = 3120 //Ash, R. L., Zuckerwar, A. J., & Zheng, Z. (1991). Second coefficient of viscosity in air. + //t = 21.8, P = 1.0145 atm, Relative Humidity = 45.8, Second Coefficient of Viscosity = 3120 + //Ash, R. L., Zuckerwar, A. J., & Zheng, Z. (1991). Second coefficient of viscosity in air. double bulckViscosity = 3120 * nuLB; dynamicPointerCast<CompressibleCumulant4thOrderViscosityLBMKernel>(kernel)->setBulkViscosity(bulckViscosity); diff --git a/apps/cpu/DLR-F16/f16.cpp b/apps/cpu/DLR-F16/f16.cpp index ca204d3807d8304dc15ca68b227a29d6ffed6f35..523a9c7c09795627d43de8b119597e52caf4d5b0 100644 --- a/apps/cpu/DLR-F16/f16.cpp +++ b/apps/cpu/DLR-F16/f16.cpp @@ -160,7 +160,7 @@ void run(string configname) try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathOut = config.getValue<string>("pathOut"); diff --git a/apps/cpu/FlowAroundCylinder/cylinder.cpp b/apps/cpu/FlowAroundCylinder/cylinder.cpp index 3ae5f2ab511cdc1767d8497eb6a895055d5ddd48..81bfd5ff3658d41e29ab6f56590119de7db3fe82 100644 --- a/apps/cpu/FlowAroundCylinder/cylinder.cpp +++ b/apps/cpu/FlowAroundCylinder/cylinder.cpp @@ -14,7 +14,7 @@ void run(string configname) //DEBUG/////////////////////////////////////// //Sleep(30000); ///////////////////////////////////////////// - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathOut = config.getValue<string>("pathOut"); diff --git a/apps/cpu/Hagen_Poiseuille_flow/pflow.cpp b/apps/cpu/Hagen_Poiseuille_flow/pflow.cpp index c448a5de53c96309be9e24ff4f507fee20a462c6..05f6c625be6ffe4cd56a673eb44a62e6c59d5ce0 100644 --- a/apps/cpu/Hagen_Poiseuille_flow/pflow.cpp +++ b/apps/cpu/Hagen_Poiseuille_flow/pflow.cpp @@ -10,7 +10,7 @@ using namespace std; //{ // try // { -// ConfigurationFile config; +// vf::basics::ConfigurationFile config; // config.load(configname); // // string pathname = config.getString("pathname"); @@ -301,7 +301,7 @@ void pflowdp(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getValue<string>("pathname"); @@ -544,7 +544,7 @@ void pflowdp(string configname) intHelper.addInteractor(outflowInt); - //die Geschwindigkeit Randbedingung soll Ausflüß überdecken !!!!! + //die Geschwindigkeit Randbedingung soll Ausfl�� �berdecken !!!!! diff --git a/apps/cpu/Hagen_Poiseuille_flow2/pflow2.cpp b/apps/cpu/Hagen_Poiseuille_flow2/pflow2.cpp index 76124d72ecedbed258aa163dc72e7a1cadff2bcc..5bcf21ed9596ce6d8d6bce9974b98627c007168d 100644 --- a/apps/cpu/Hagen_Poiseuille_flow2/pflow2.cpp +++ b/apps/cpu/Hagen_Poiseuille_flow2/pflow2.cpp @@ -10,7 +10,7 @@ void pflowdp(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/HerschelBulkleyModel/hbflow.cpp b/apps/cpu/HerschelBulkleyModel/hbflow.cpp index 6de995e2af0510fcc19f985a1eb43214b1748090..976635bdea0823f6e4cdef208f06d98499e0eabf 100644 --- a/apps/cpu/HerschelBulkleyModel/hbflow.cpp +++ b/apps/cpu/HerschelBulkleyModel/hbflow.cpp @@ -10,7 +10,7 @@ void bflow(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getValue<string>("pathname"); diff --git a/apps/cpu/HerschelBulkleySphere/hbsphere.cpp b/apps/cpu/HerschelBulkleySphere/hbsphere.cpp index f4b50325da703381b9c09b36c18741f7f1c04cc5..eff2c2c628995b34f00650d310275d186d38f2fc 100644 --- a/apps/cpu/HerschelBulkleySphere/hbsphere.cpp +++ b/apps/cpu/HerschelBulkleySphere/hbsphere.cpp @@ -10,7 +10,7 @@ void bflow(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string outputPath = config.getValue<string>("outputPath"); diff --git a/apps/cpu/JetBreakup/JetBreakup.cpp b/apps/cpu/JetBreakup/JetBreakup.cpp index e2dc0f0e31483310bc119b26ce246aa8dfb7133c..d6cff6366a00a65983ee67075f99d8ca2c9e1ff9 100644 --- a/apps/cpu/JetBreakup/JetBreakup.cpp +++ b/apps/cpu/JetBreakup/JetBreakup.cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/LaminarTubeFlow/ltf.cpp b/apps/cpu/LaminarTubeFlow/ltf.cpp index e523dd2de7416ea5189dbceab200725d89f15424..c2c3866fc11b404acb3c571450f86d8ce07a4b2f 100644 --- a/apps/cpu/LaminarTubeFlow/ltf.cpp +++ b/apps/cpu/LaminarTubeFlow/ltf.cpp @@ -11,7 +11,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getValue<string>("pathname"); diff --git a/apps/cpu/Multiphase/Multiphase (Droplet Test).cpp.backup b/apps/cpu/Multiphase/Multiphase (Droplet Test).cpp.backup index 46297d526c76362e2d45e00ad5496c20dac2af99..389b754f848e8886140113310572686a9efd908b 100644 --- a/apps/cpu/Multiphase/Multiphase (Droplet Test).cpp.backup +++ b/apps/cpu/Multiphase/Multiphase (Droplet Test).cpp.backup @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/Multiphase/Multiphase (Jet breakup on Phoenix).cpp.backup b/apps/cpu/Multiphase/Multiphase (Jet breakup on Phoenix).cpp.backup index 9f28008987968254edb46a1b7750155aad4f5ced..1adc07f8b293327e9bf814d82ebcca8b8aa91d44 100644 --- a/apps/cpu/Multiphase/Multiphase (Jet breakup on Phoenix).cpp.backup +++ b/apps/cpu/Multiphase/Multiphase (Jet breakup on Phoenix).cpp.backup @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/Multiphase/Multiphase.cpp b/apps/cpu/Multiphase/Multiphase.cpp index deb2845f4278661bb970ea68b043e3cb435bffcc..77bcfd0c00a4f2d6050de7dfb58a2c923b5d2ce4 100644 --- a/apps/cpu/Multiphase/Multiphase.cpp +++ b/apps/cpu/Multiphase/Multiphase.cpp @@ -12,7 +12,7 @@ void run(string configname) //Sleep(20000); - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getValue<string>("pathname"); diff --git a/apps/cpu/Multiphase/backup/Multiphase (Droplet Test).cpp b/apps/cpu/Multiphase/backup/Multiphase (Droplet Test).cpp index b5a8a9eac55d2150f08e00a8ba6f215228bf135a..18989d3601729dcc663f707bc21e3a7f91a57dfd 100644 --- a/apps/cpu/Multiphase/backup/Multiphase (Droplet Test).cpp +++ b/apps/cpu/Multiphase/backup/Multiphase (Droplet Test).cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/Multiphase/backup/Multiphase (Final before automation).cpp b/apps/cpu/Multiphase/backup/Multiphase (Final before automation).cpp index b4a6b34782a4bc8df00168d9d0a9130d19630755..b6160314eb87c785443602a4c5eb35ca16ebc02b 100644 --- a/apps/cpu/Multiphase/backup/Multiphase (Final before automation).cpp +++ b/apps/cpu/Multiphase/backup/Multiphase (Final before automation).cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/Multiphase/backup/Multiphase (Flow Focusing).cpp b/apps/cpu/Multiphase/backup/Multiphase (Flow Focusing).cpp index 33333fc0dba8d082574e766e39c9573adbdde450..11e064e30a210485aabd40c40ee925e3acf56922 100644 --- a/apps/cpu/Multiphase/backup/Multiphase (Flow Focusing).cpp +++ b/apps/cpu/Multiphase/backup/Multiphase (Flow Focusing).cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/Multiphase/backup/Multiphase (Jet breakup on Phoenix).cpp b/apps/cpu/Multiphase/backup/Multiphase (Jet breakup on Phoenix).cpp index 9f28008987968254edb46a1b7750155aad4f5ced..1adc07f8b293327e9bf814d82ebcca8b8aa91d44 100644 --- a/apps/cpu/Multiphase/backup/Multiphase (Jet breakup on Phoenix).cpp +++ b/apps/cpu/Multiphase/backup/Multiphase (Jet breakup on Phoenix).cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/Multiphase/backup/Multiphase (T-Junction).cpp b/apps/cpu/Multiphase/backup/Multiphase (T-Junction).cpp index 18651e4a5584a7eda7bd3aea4dc8789eb03e1d15..2f3e94e7acf42de01826e0aac1daff2689d04acb 100644 --- a/apps/cpu/Multiphase/backup/Multiphase (T-Junction).cpp +++ b/apps/cpu/Multiphase/backup/Multiphase (T-Junction).cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/Multiphase/backup/Multiphase (Thermal).cpp b/apps/cpu/Multiphase/backup/Multiphase (Thermal).cpp index a5d20b94a4a74331f55954088545df8f735faf71..a61d7b7541f05e66eab79f0e5bf1f4e91325632f 100644 --- a/apps/cpu/Multiphase/backup/Multiphase (Thermal).cpp +++ b/apps/cpu/Multiphase/backup/Multiphase (Thermal).cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/Multiphase/backup/Multiphase (Tube).cpp b/apps/cpu/Multiphase/backup/Multiphase (Tube).cpp index 5795ec61054dfa359fd4038ce7f8f1f263b6ee71..7febd0cf18d80039af1fc284612789321b21e6b6 100644 --- a/apps/cpu/Multiphase/backup/Multiphase (Tube).cpp +++ b/apps/cpu/Multiphase/backup/Multiphase (Tube).cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/Multiphase/backup/Multiphase.cpp b/apps/cpu/Multiphase/backup/Multiphase.cpp index eae4ab93de060157422f29ae9984078e298194d4..df4c311d8de62ce79aa337af19561b510b859d79 100644 --- a/apps/cpu/Multiphase/backup/Multiphase.cpp +++ b/apps/cpu/Multiphase/backup/Multiphase.cpp @@ -10,7 +10,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/MultiphaseDropletTest/droplet.cpp b/apps/cpu/MultiphaseDropletTest/droplet.cpp index 092d5a16a36b47c726f0f85463484f0c97fdecd0..829ad38628665cbe006e7f9b88cb63b8ea362472 100644 --- a/apps/cpu/MultiphaseDropletTest/droplet.cpp +++ b/apps/cpu/MultiphaseDropletTest/droplet.cpp @@ -9,7 +9,7 @@ using namespace std; void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getValue<string>("pathname"); diff --git a/apps/cpu/OrganPipe/OrganPipe.cpp b/apps/cpu/OrganPipe/OrganPipe.cpp index 2435b3567d5179da7375fceacdf641b05302d18b..8ad094bc9cc8db392eac1f7926365a9dca2586c6 100644 --- a/apps/cpu/OrganPipe/OrganPipe.cpp +++ b/apps/cpu/OrganPipe/OrganPipe.cpp @@ -15,7 +15,7 @@ void run(string configname) SPtr<LBMUnitConverter> conv = SPtr<LBMUnitConverter>(new LBMUnitConverter()); - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); bool newStart = config.getValue<bool>("newStart"); diff --git a/apps/cpu/Thermoplast/thermoplast.cpp b/apps/cpu/Thermoplast/thermoplast.cpp index 60057f28ea51fe10da93d07cfad9cf3f35d1411d..dc77db67a844004fe2ecc63a15df125c03ad1903 100644 --- a/apps/cpu/Thermoplast/thermoplast.cpp +++ b/apps/cpu/Thermoplast/thermoplast.cpp @@ -197,7 +197,7 @@ void thermoplast(string configname) SPtr<Communicator> comm = MPICommunicator::getInstance(); int myid = comm->getProcessID(); - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); vector<int> blocknx = config.getVector<int>("blocknx"); diff --git a/apps/cpu/ViskomatXL/viskomat.cpp b/apps/cpu/ViskomatXL/viskomat.cpp index 91dfb050901571b5cf37e02cfca5ab8c7a8eb8cb..12eea28c32990f38393bc3d3478cd0833c30c5ef 100644 --- a/apps/cpu/ViskomatXL/viskomat.cpp +++ b/apps/cpu/ViskomatXL/viskomat.cpp @@ -10,7 +10,7 @@ void bflow(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string outputPath = config.getValue<string>("outputPath"); @@ -35,7 +35,7 @@ void bflow(string configname) double scaleFactor = config.getValue<double>("scaleFactor"); double resolution = config.getValue<double>("resolution"); - ConfigurationFile viscosity; + vf::basics::ConfigurationFile viscosity; //viscosity.load(viscosityPath + "/viscosity.cfg"); //double nuLB = viscosity.getValue<double>("nuLB"); diff --git a/apps/cpu/aperm/aperm.cpp b/apps/cpu/aperm/aperm.cpp index 8745b732b04cd449c52ef23d9e8176a780a1ebbb..0172975c677e0072d3ead6ab13127cca98ca7161 100644 --- a/apps/cpu/aperm/aperm.cpp +++ b/apps/cpu/aperm/aperm.cpp @@ -12,7 +12,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/aperm/aperm.cpp.old b/apps/cpu/aperm/aperm.cpp.old index ce21e06c2d7713665596886c152c6e384f5003d2..87f05527469d44c5ea565108e515bea2a6b50a29 100644 --- a/apps/cpu/aperm/aperm.cpp.old +++ b/apps/cpu/aperm/aperm.cpp.old @@ -12,7 +12,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/aperm/aperm.cpp.old2 b/apps/cpu/aperm/aperm.cpp.old2 index 0a4d41cfa3c136948cf88dc7f71dee2bb75bf3be..fd2b40d89a9479ba50843028a3d61e9422e759b7 100644 --- a/apps/cpu/aperm/aperm.cpp.old2 +++ b/apps/cpu/aperm/aperm.cpp.old2 @@ -12,7 +12,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/bChannelA/bChannelA.cpp b/apps/cpu/bChannelA/bChannelA.cpp index 388ca594cda49bd48e4f6eaf3ad8342b5f469ef9..75e263bbe125871598fdd1cbd38749e41132a224 100644 --- a/apps/cpu/bChannelA/bChannelA.cpp +++ b/apps/cpu/bChannelA/bChannelA.cpp @@ -87,7 +87,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathOut = config.getValue<string>("pathOut"); diff --git a/apps/cpu/f16Test/f16test.cpp b/apps/cpu/f16Test/f16test.cpp index 8e3bb726e638fb1946e23d841e5c35aaa085d0cc..58921f91e5fa294fb117a2842626e28d12ade8d4 100644 --- a/apps/cpu/f16Test/f16test.cpp +++ b/apps/cpu/f16Test/f16test.cpp @@ -16,7 +16,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathOut = config.getString("pathOut"); diff --git a/apps/cpu/levels/levels.cpp b/apps/cpu/levels/levels.cpp index 2f9297f3aa7749db7001ddf6f0ad8f1af8525ac5..7173a4ba562a95fc93e267c5498957fc4a539da6 100644 --- a/apps/cpu/levels/levels.cpp +++ b/apps/cpu/levels/levels.cpp @@ -20,7 +20,7 @@ void run(string configname) int mybundle = comm->getBundleID(); int root = comm->getRoot(); - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getValue<string>("path"); diff --git a/apps/cpu/mirror/mirror.cpp b/apps/cpu/mirror/mirror.cpp index a5c877bf68df10f3445849de6deac346772b058a..e4a2f33027bb3b0be3eafb6b0746a14f642107ee 100644 --- a/apps/cpu/mirror/mirror.cpp +++ b/apps/cpu/mirror/mirror.cpp @@ -9,7 +9,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathOut = config.getValue<string>("pathOut"); diff --git a/apps/cpu/mpi_benchmark/mpib.cpp b/apps/cpu/mpi_benchmark/mpib.cpp index 7874e2ea51a86663c29f9bc4d8847e832f6b139b..05a251bb2f0632a8cff7b1d0cb42603c5be0438e 100644 --- a/apps/cpu/mpi_benchmark/mpib.cpp +++ b/apps/cpu/mpi_benchmark/mpib.cpp @@ -20,7 +20,7 @@ void run(string configname) { //UbLog::reportingLevel() = UbLog::logLevelFromString("DEBUG5"); - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathOut = config.getString("pathOut"); diff --git a/apps/cpu/pChannel/pChannel.cpp b/apps/cpu/pChannel/pChannel.cpp index 85a34a51cd3712a679e380bbd014cfeeefb6e74d..f036c22b6a7f3016a25d20640026db10eb5cb6bf 100644 --- a/apps/cpu/pChannel/pChannel.cpp +++ b/apps/cpu/pChannel/pChannel.cpp @@ -169,7 +169,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathOut = config.getValue<string>("pathOut"); diff --git a/apps/cpu/pChannel/pChannel.cpp.hlrn b/apps/cpu/pChannel/pChannel.cpp.hlrn index 808b8cf49ec3c2f4c9c9fcaa725844ce08d9ca1f..a0592ec5b0871b37e3d7f21e0f85cc91ebf561d2 100644 --- a/apps/cpu/pChannel/pChannel.cpp.hlrn +++ b/apps/cpu/pChannel/pChannel.cpp.hlrn @@ -13,7 +13,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/apps/cpu/perm/perm.cpp b/apps/cpu/perm/perm.cpp index 4cb2b6eb111e814479cef87ae4799e4467939c19..21b4bc47abfd650e52c9b235d28fdcdf52b229f2 100644 --- a/apps/cpu/perm/perm.cpp +++ b/apps/cpu/perm/perm.cpp @@ -9,7 +9,7 @@ void perm(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getValue<string>("pathname"); diff --git a/apps/cpu/rheometer/rheometer.cpp b/apps/cpu/rheometer/rheometer.cpp index f6f98c122c3197f1a080fd335f8edfc9ee1f4e33..3c7907d3b1bc13547d64abd2180657d20b250704 100644 --- a/apps/cpu/rheometer/rheometer.cpp +++ b/apps/cpu/rheometer/rheometer.cpp @@ -10,7 +10,7 @@ void bflow(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string outputPath = config.getValue<string>("outputPath"); @@ -34,7 +34,7 @@ void bflow(string configname) double scaleFactor = config.getValue<double>("scaleFactor"); double resolution = config.getValue<double>("resolution"); - ConfigurationFile viscosity; + vf::basics::ConfigurationFile viscosity; viscosity.load(viscosityPath + "/viscosity.cfg"); double nuLB = viscosity.getValue<double>("nuLB"); diff --git a/apps/cpu/screw/screw.cpp b/apps/cpu/screw/screw.cpp index 3f48efaf9beb105d0c1e06237165153ef3c6898c..099ae784987b4c829a00018e712df690b0660c38 100644 --- a/apps/cpu/screw/screw.cpp +++ b/apps/cpu/screw/screw.cpp @@ -14,7 +14,7 @@ int main(int argc, char* argv[]) return EXIT_FAILURE; } - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(argv[1]); string pathname = config.getString("pathname"); diff --git a/apps/cpu/sphere/sphere.cpp b/apps/cpu/sphere/sphere.cpp index 310766ad05f6a3a1d8c08d8ead69c9f48bb6ce11..3b725f98cf62b5c987cbbde9f0698b5d9bc337c1 100644 --- a/apps/cpu/sphere/sphere.cpp +++ b/apps/cpu/sphere/sphere.cpp @@ -13,7 +13,7 @@ void run(string configname) int myid = comm->getProcessID(); - //ConfigurationFile config; + //vf::basics::ConfigurationFile config; //config.load(configname); //string pathname = config.getValue<string>("path"); diff --git a/apps/cpu/teperm/teperm.cpp b/apps/cpu/teperm/teperm.cpp index b881495912710982a9944f6274ed037595b1442a..51638fa26e5675e69bf9e6ce23950f6cf9a47ec6 100644 --- a/apps/cpu/teperm/teperm.cpp +++ b/apps/cpu/teperm/teperm.cpp @@ -14,7 +14,7 @@ void run(string configname) { try { - ConfigurationFile config; + vf::basics::ConfigurationFile config; config.load(configname); string pathname = config.getString("pathname"); diff --git a/src/cpu/VirtualFluidsCore/Utilities/ConfigurationFile.hpp b/src/basics/config/ConfigurationFile.hpp similarity index 97% rename from src/cpu/VirtualFluidsCore/Utilities/ConfigurationFile.hpp rename to src/basics/config/ConfigurationFile.hpp index 5c8050826f0ac580f83fc29e51da883469d8d6e2..f48161557fd16b9131162511ed8c447f844d50be 100644 --- a/src/cpu/VirtualFluidsCore/Utilities/ConfigurationFile.hpp +++ b/src/basics/config/ConfigurationFile.hpp @@ -1,5 +1,5 @@ -#ifndef Configuration_h__ -#define Configuration_h__ +#ifndef BASICS_CONFIGURATIONFILE_H +#define BASICS_CONFIGURATIONFILE_H #include <map> #include <vector> @@ -9,6 +9,8 @@ #include <iostream> #include <stdlib.h> +#include <basics/basics/utilities/UbException.h> + //! \brief Simple configuration file //! \details The Configuration class presented here can read and keep values of any configuration file written in a format like this: //!# @@ -37,6 +39,11 @@ //! //! \author Konstantin Kutscher + +namespace vf::basics +{ + + class ConfigurationFile { public: @@ -240,4 +247,7 @@ T ConfigurationFile::getValue(const std::string& key) const return x; } -#endif // Configuration_h__ + +} + +#endif diff --git a/src/cpu/VirtualFluids.h b/src/cpu/VirtualFluids.h index 363c9c046b37a45d800ea142e79617f71a8499d3..64c8382cded3e48e343127f207259368a89e71fc 100644 --- a/src/cpu/VirtualFluids.h +++ b/src/cpu/VirtualFluids.h @@ -42,6 +42,8 @@ #include <basics/PointerDefinitions.h> +#include <basics/config/ConfigurationFile.hpp> + #include <basics/container/CbArray2D.h> #include <basics/container/CbArray3D.h> #include <basics/container/CbArray4D.h> @@ -291,7 +293,6 @@ #include <Utilities/ChangeRandomQs.hpp> #include <Utilities/CheckpointConverter.h> -#include <Utilities/ConfigurationFile.hpp> #include <Utilities/MathUtil.hpp> #include <Utilities/MemoryUtil.h> #include <Utilities/VoxelMatrixUtil.hpp>