Пример #1
0
#!/usr/bin/env python3

from os import symlink,environ, system
from sys import argv,exit,platform
from helpers.runSusTests_git import runSusTests, ignorePerformanceTests, getInputsDir
from helpers.modUPS import modUPS

the_dir = "%s/%s" % ( getInputsDir(),"ARCHES" )

BrownSoot_spectral_orthog_ups  = modUPS( the_dir, "Coal/BrownSoot_spectral.ups" , ["<addOrthogonalDirs> true </addOrthogonalDirs>"])



#______________________________________________________________________
#  Test syntax: ( "folder name", "input file", # processors, "OS", ["flags1","flag2"])
#
#  OS:  Linux, Darwin, or ALL
#
#  flags:
#       gpu:                        - run test if machine is gpu enabled
#       no_uda_comparison:          - skip the uda comparisons
#       no_memoryTest:              - skip all memory checks
#       no_restart:                 - skip the restart tests
#       no_dbg:                     - skip all debug compilation tests
#       no_opt:                     - skip all optimized compilation tests
#       no_cuda:                    - skip test if this is a cuda enable build
#       do_performance_test:        - Run the performance test, log and plot simulation runtime.
#                                     (You cannot perform uda comparsions with this flag set)
#       doesTestRun:                - Checks if a test successfully runs
#       abs_tolerance=[double]      - absolute tolerance used in comparisons
#       rel_tolerance=[double]      - relative tolerance used in comparisons
Пример #2
0
#!/usr/bin/env python3

from sys import argv, exit
from os import environ, system
from helpers.runSusTests_git import runSusTests, ignorePerformanceTests, getInputsDir
from helpers.modUPS import modUPS, modUPS2
#______________________________________________________________________
#  Modify the input files

the_dir = "%s/%s" % (getInputsDir(), "ICE")

riemann_1L_ups    = modUPS( the_dir,                       \
                             "riemann_sm.ups" ,            \
                             ["<maxTime>            0.0001      </maxTime>", \
                              "<outputInterval> 0.000025 </outputInterval>"])


advectAMR_perf_ups = modUPS2( the_dir, \
                               "advectAMR.ups", \
                               [("delete", "/Uintah_specification/DataAnalysis")] )

riemann_AMR_3L_ups = modUPS( the_dir,                       \
                             "riemann_AMR.ups" ,            \
                             ["<maxTime>            0.0001      </maxTime>", \
                              "<outputInterval> 0.000025 </outputInterval>"])

hotBlob_AMR_3L_ups = modUPS( the_dir,                       \
                             "hotBlob_AMR.ups",             \
                             ["<max_levels>3</max_levels>", \
                              "<filebase>AMR_HotBlob_3L.uda</filebase>"])
Пример #3
0
#!/usr/bin/env python3

from sys import argv, exit
from os import environ, system
from helpers.runSusTests_git import runSusTests, ignorePerformanceTests, getInputsDir
from helpers.modUPS import modUPS, modUPS2

from os import system

the_dir = "%s/%s" % (getInputsDir(), "Examples")

# convert RMCRT:double -> RMCRT:float
system(
    "cd %s ; ./RMCRT_doubleToFloat  RMCRT_bm1_1L.ups  RMCRT_FLT_bm1_1L.ups" %
    the_dir)
system("cd %s ; ./RMCRT_doubleToFloat  RMCRT_ML.ups      RMCRT_FLT_ML.ups" %
       the_dir)
system(
    "cd %s ; ./RMCRT_doubleToFloat  RMCRT_bm1_DO.ups  RMCRT_FLT_bm1_DO.ups" %
    the_dir)

# Modify base files
RMCRT_isoScat_LHC_ups = modUPS( the_dir, \
                               "RMCRT_isoScat.ups", \
                               ["<rayDirSampleAlgo>LatinHyperCube</rayDirSampleAlgo>"])

# Modify base files
RMCRT_1L_perf_GPU_ups = modUPS( the_dir, \
                               "RMCRT_1L_perf.ups", \
                               ["<resolution> [64,64,64]  </resolution>",
                                "<patches>    [2,2,2]     </patches>",
Пример #4
0
#!/usr/bin/env python3

from sys import argv, exit
from os import environ, system
from helpers.runSusTests_git import runSusTests, ignorePerformanceTests, getInputsDir
from helpers.modUPS import modUPS, modUPS2


inputs = "%s/%s" % ( getInputsDir(),"MPMICE" )

advectSlipExchOn_ups = modUPS( inputs, \
                               "advectSlipExch.ups", \
                               ["<useSlipCoeffs>  true </useSlipCoeffs>"] )

#______________________________________________________________________
#  Test syntax: ( "folder name", "input file", # processors, "OS", ["flags1","flag2",...])
#
#  OS:  Linux, Darwin, or ALL
#
#  flags:
#       gpu:                        - run test if machine is gpu enabled
#       no_uda_comparison:          - skip the uda comparisons
#       no_memoryTest:              - skip all memory checks
#       no_restart:                 - skip the restart tests
#       no_dbg:                     - skip all debug compilation tests
#       no_opt:                     - skip all optimized compilation tests
#       no_cuda:                    - skip test if this is a cuda enable build
#       do_performance_test:        - Run the performance test, log and plot simulation runtime.
#                                     (You cannot perform uda comparsions with this flag set)
#       doesTestRun:                - Checks if a test successfully runs
#       abs_tolerance=[double]      - absolute tolerance used in comparisons
Пример #5
0
#!/usr/bin/env python3

from sys import argv, exit
from os import environ, system, path
from subprocess import getoutput
from helpers.runSusTests_git import runSusTests, ignorePerformanceTests, build_root, getInputsDir
from helpers.modUPS import modUPS

the_dir = "%s/%s" % (getInputsDir(), "Wasatch")

bc_gpu_x_ups = modUPS( the_dir, \
                  "bc-test-svol-xdir.ups", \
                   ["<patches>[1,1,1]</patches>"])
bc_gpu_y_ups = modUPS( the_dir, \
                  "bc-test-svol-ydir.ups", \
                   ["<patches>[1,1,1]</patches>"])
bc_gpu_z_ups = modUPS( the_dir, \
                  "bc-test-svol-zdir.ups", \
                   ["<patches>[1,1,1]</patches>"])
bc_gpu_xyz_ups = modUPS( the_dir, \
                  "bc-test-mixed.ups", \
                   ["<patches>[1,1,1]</patches>"])

gpu_compressible_1d_ups = modUPS( the_dir, \
                  "compressible-flow-test-1d.ups", \
                   ["<patches>[1,1,1]</patches>"])

gpu_compressible_2d_ups = modUPS( the_dir, \
                  "compressible-flow-test-2d.ups", \
                   ["<outputTimestepInterval>1</outputTimestepInterval>", "<patches>[1,1,1]</patches>"])