Commit 5bcc2c6d authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Small fixes.

parent 740d7d10
Loading
Loading
Loading
Loading
+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"
@@ -84,6 +85,7 @@ solve()
{
   timeDiscretisation=$1
   discreteSolver=$2
   threadsNumber=$3
   ${solverName} --device ${device} \
                 --mesh mesh.tnl \
                 --initial-condition exact-u-00000.tnl \
@@ -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()
@@ -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}
@@ -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 "========================================================================="
@@ -199,6 +209,8 @@ runTest()
           done
           cd ..
        done
        cd ..
    done
}

runTest
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@
namespace TNL {
namespace Solvers {   

class tnlDefaultBuildConfigTag{};
class DefaultBuildConfigTag{};

/****
 * All devices are enabled by default. Those which are not available