Loading examples/heat-equation/tnl-run-heat-equation-eoc-test +82 −70 Original line number Diff line number Diff line #!/bin/bash device="host" threadsNumbers="1 2 4 6" dimensions="1D 2D 3D" #dimensions="1D" sizes1D="16 32 64 128 256 512" Loading Loading @@ -84,6 +85,7 @@ solve() { timeDiscretisation=$1 discreteSolver=$2 threadsNumber=$3 ${solverName} --device ${device} \ --mesh mesh.tnl \ --initial-condition exact-u-00000.tnl \ Loading Loading @@ -113,7 +115,10 @@ solve() --sigma ${sigma} \ --time-dependence ${timeDependence} \ --snapshot-period ${snapshotPeriod} \ --final-time ${finalTime} --final-time ${finalTime} \ --refresh-rate 50 \ --openmp-enabled true \ --openmp-max-threads ${threadsNumber} } computeError() Loading @@ -128,6 +133,11 @@ computeError() runTest() { for threadsNumber in ${threadsNumbers}; do mkdir -p threads-${threadsNumber} cd threads-${threadsNumber} for testFunction in ${testFunctions}; do mkdir -p ${testFunction} Loading Loading @@ -173,8 +183,8 @@ runTest() echo "=========================================================================" echo "=== STARTING THE SOLVER ===" echo "=========================================================================" #solve explicit merson solve semi-implicit gmres #solve explicit merson ${threadsNumber} solve semi-implicit gmres ${threadsNumber} mv computation-in-progress computation-done fi echo "=========================================================================" Loading @@ -199,6 +209,8 @@ runTest() done cd .. done cd .. done } runTest Loading src/TNL/Solvers/BuildConfigTags.h +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ namespace TNL { namespace Solvers { class tnlDefaultBuildConfigTag{}; class DefaultBuildConfigTag{}; /**** * All devices are enabled by default. Those which are not available Loading Loading
examples/heat-equation/tnl-run-heat-equation-eoc-test +82 −70 Original line number Diff line number Diff line #!/bin/bash device="host" threadsNumbers="1 2 4 6" dimensions="1D 2D 3D" #dimensions="1D" sizes1D="16 32 64 128 256 512" Loading Loading @@ -84,6 +85,7 @@ solve() { timeDiscretisation=$1 discreteSolver=$2 threadsNumber=$3 ${solverName} --device ${device} \ --mesh mesh.tnl \ --initial-condition exact-u-00000.tnl \ Loading Loading @@ -113,7 +115,10 @@ solve() --sigma ${sigma} \ --time-dependence ${timeDependence} \ --snapshot-period ${snapshotPeriod} \ --final-time ${finalTime} --final-time ${finalTime} \ --refresh-rate 50 \ --openmp-enabled true \ --openmp-max-threads ${threadsNumber} } computeError() Loading @@ -128,6 +133,11 @@ computeError() runTest() { for threadsNumber in ${threadsNumbers}; do mkdir -p threads-${threadsNumber} cd threads-${threadsNumber} for testFunction in ${testFunctions}; do mkdir -p ${testFunction} Loading Loading @@ -173,8 +183,8 @@ runTest() echo "=========================================================================" echo "=== STARTING THE SOLVER ===" echo "=========================================================================" #solve explicit merson solve semi-implicit gmres #solve explicit merson ${threadsNumber} solve semi-implicit gmres ${threadsNumber} mv computation-in-progress computation-done fi echo "=========================================================================" Loading @@ -199,6 +209,8 @@ runTest() done cd .. done cd .. done } runTest Loading
src/TNL/Solvers/BuildConfigTags.h +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ namespace TNL { namespace Solvers { class tnlDefaultBuildConfigTag{}; class DefaultBuildConfigTag{}; /**** * All devices are enabled by default. Those which are not available Loading