コード例 #1
0
ファイル: ARCHES.py プロジェクト: markguozhiming/Uintah
#!/usr/bin/env python3

from os import symlink,environ, system
from sys import argv,exit,platform
from helpers.runSusTests 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
ファイル: ICE.py プロジェクト: QuocAnh90/Uintah_NTNU
#!/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
ファイル: Wasatch.py プロジェクト: vbchris/fatitah
#!/usr/bin/env python
 
from sys import argv, exit
from os import environ
from helpers.runSusTests import runSusTests, inputs_root, generatingGoldStandards
from helpers.modUPS import modUPS

the_dir = generatingGoldStandards()

if the_dir == "" :
  the_dir = "%s/Wasatch" % inputs_root()
else :
  the_dir = the_dir + "/Wasatch"

liddrivencavity3DRe1000rk3_ups = modUPS( the_dir, \
                                       "lid-driven-cavity-3D-Re1000.ups", \
                                       ["<TimeIntegrator> RK3SSP </TimeIntegrator>", \
                                       "<filebase>liddrivencavity3DRe1000rk3.uda</filebase>"])

#______________________________________________________________________
#  Test syntax: ( "folder name", "input file", # processors, "OS", ["flags1","flag2"])
#  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
#       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
コード例 #4
0
from os import environ, system
from helpers.runSusTests 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>",
                                "<nDivQRays>  100         </nDivQRays>"
                               ]  )

RMCRT_DO_perf_GPU_ups = modUPS2( the_dir, \
                               "RMCRT_DO_perf.ups", \
                               [( "update", "/Uintah_specification/Grid/Level/Box[@label=0]/resolution :[32,32,32]" ),
                                ( "update", "/Uintah_specification/Grid/Level/Box[@label=0]/patches    :[2,2,2]"    ),
                                ( "update", "/Uintah_specification/Grid/Level/Box[@label=1]/resolution :[64,64,64]" ),
コード例 #5
0
ファイル: ICE.py プロジェクト: pinebai/ParSim
from sys import argv, exit
from os import environ
from helpers.runSusTests import runSusTests, inputs_root, generatingGoldStandards
from helpers.modUPS import modUPS

the_dir = generatingGoldStandards()

if the_dir == "":
    the_dir = "%s/ICE" % inputs_root()
else:
    the_dir = the_dir + "/ICE"


hotBlob_AMR_3L_ups = modUPS( the_dir,                       \
                             "hotBlob_AMR.ups",             \
                             ["<max_levels>3</max_levels>", \
                              "<lattice_refinement_ratio> [[5,5,1],[2,2,1]]  </lattice_refinement_ratio>", \
                              "<filebase>AMR_HotBlob_3L.uda</filebase>"])

#______________________________________________________________________
#  Test syntax: ( "folder name", "input file", # processors, "OS",["flags1","flag2"])
#  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
#       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
コード例 #6
0
ファイル: MPMICE.py プロジェクト: Uintah/Uintah_update
#!/usr/bin/env python3

from sys import argv, exit
from os import environ, system
from helpers.runSusTests 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
#       rel_tolerance=[double]      - relative tolerance used in comparisons
コード例 #7
0
#!/usr/bin/env python3

from sys import argv, exit
from os import environ, system, path
from subprocess import getoutput
from helpers.runSusTests 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>"])
コード例 #8
0
ファイル: ARCHES.py プロジェクト: vbchris/fatitah
#!/usr/bin/env python

from os import symlink,environ
from sys import argv,exit,platform
from helpers.runSusTests import runSusTests, inputs_root, generatingGoldStandards
from helpers.modUPS import modUPS

the_dir = generatingGoldStandards()

if the_dir == "" :
  the_dir = "%s/ARCHES" % inputs_root()
else :
  the_dir = the_dir + "/ARCHES"

methanePetscRadSolver_ups = modUPS( the_dir,                 \
                            "methane_explicit_table.ups",    \
                            ["<patches>[2,2,2]</patches>",   \
                             "<LinearSolver type=\"petsc\">"] )
                           
#______________________________________________________________________                            
#  Test syntax: ( "folder name", "input file", # processors, "OS", ["flags1","flag2"])
#  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
#       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
コード例 #9
0
ファイル: ICE.py プロジェクト: vbchris/fatitah
from sys import argv, exit
from os import environ
from helpers.runSusTests import runSusTests, inputs_root, generatingGoldStandards
from helpers.modUPS import modUPS

the_dir = generatingGoldStandards()

if the_dir == "" :
  the_dir = "%s/ICE" % inputs_root()
else :
  the_dir = the_dir + "/ICE"


hotBlob_AMR_3L_ups = modUPS( the_dir,                       \
                             "hotBlob_AMR.ups",             \
                             ["<max_levels>3</max_levels>", \
                              "<lattice_refinement_ratio> [[5,5,1],[2,2,1]]  </lattice_refinement_ratio>", \
                              "<filebase>AMR_HotBlob_3L.uda</filebase>"])

#______________________________________________________________________
#  Test syntax: ( "folder name", "input file", # processors, "OS",["flags1","flag2"])
#  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
#       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
コード例 #10
0
ファイル: ICE.py プロジェクト: alvarodlg/lotsofcoresbook2code
#!/usr/bin/env python

from sys import argv, exit
from os import environ
from helpers.runSusTests import runSusTests, inputs_root, generatingGoldStandards
from helpers.modUPS import modUPS

the_dir = generatingGoldStandards()

if the_dir == "" :
  the_dir = "%s/ICE" % inputs_root()
else :
  the_dir = the_dir + "/ICE"

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


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>"])

#______________________________________________________________________
#  Test syntax: ( "folder name", "input file", # processors, "OS",["flags1","flag2"])
コード例 #11
0
  the_dir = the_dir + "/Examples"

# convert RMCRT:double -> RMCRT:float
system("cd %s ; ./RMCRT_doubleToFloat  RMCRT_test_1L.ups RMCRT_FLT_test_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 )


# convert CPU -> GPU tests
system("cd %s ; ./RMCRT_gpuWorkAround  RMCRT_test_1L.ups      RMCRT_GPU_1L.ups"         % the_dir )
system("cd %s ; ./RMCRT_gpuWorkAround  RMCRT_ML.ups           RMCRT_GPU_ML.ups"         % the_dir )
system("cd %s ; ./RMCRT_gpuWorkAround  RMCRT_1L_reflect.ups   RMCRT_GPU_1L_reflect.ups" % the_dir )

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

#______________________________________________________________________
#  Test syntax: ( "folder name", "input file", # processors, "OS",["flags1","flag2"])
#  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
#       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
コード例 #12
0
# liddrivencavity3Dsmagorinskyperf_ups = modUPS( the_dir, \
#                                        "turb-lid-driven-cavity-3D-SMAGORINSKY.ups", \
#                                        ["<max_Timesteps> 50 </max_Timesteps>","<resolution>[100,100,100]</resolution>","<patches>[1,1,1]</patches>"])
# liddrivencavity3Dwaleperf_ups = modUPS( the_dir, \
#                                        "turb-lid-driven-cavity-3D-WALE.ups", \
#                                        ["<max_Timesteps> 50 </max_Timesteps>","<resolution>[100,100,100]</resolution>","<patches>[1,1,1]</patches>"])
# scalabilitytestperf_ups = modUPS( the_dir, \
#                                   "scalability-test.ups", \
#                                   ["<max_Timesteps> 1000 </max_Timesteps>"])                                       
# 
turbulenceDir = the_dir + "/turbulence-verification"
print turbulenceDir
# 

decayIsotropicTurbulenceViscous32_ups = modUPS( turbulenceDir, \
                                       "warches-decay-isotropic-turbulence-viscous-32.ups", \
                                       ["<max_Timesteps> 10 </max_Timesteps>","<outputTimestepInterval>1</outputTimestepInterval>",'<checkpoint cycle = "4" interval = "0.001"/>'])


decayIsotropicTurbulenceViscous32rk2_ups = modUPS( turbulenceDir, \
                                       "warches-decay-isotropic-turbulence-viscous-32.ups", \
                                       ["<max_Timesteps> 10 </max_Timesteps>","<outputTimestepInterval>1</outputTimestepInterval>",'<checkpoint cycle = "4" interval = "0.001"/>','<ExplicitIntegrator order="second"/>'])

decayIsotropicTurbulenceViscous32rk3_ups = modUPS( turbulenceDir, \
                                       "warches-decay-isotropic-turbulence-viscous-32.ups", \
                                       ["<max_Timesteps> 10 </max_Timesteps>","<outputTimestepInterval>1</outputTimestepInterval>",'<checkpoint cycle = "4" interval = "0.001"/>','<ExplicitIntegrator order="third"/>'])

decayIsotropicTurbulenceCSmag32_ups = modUPS( turbulenceDir, \
                                       "warches-decay-isotropic-turbulence-csmag-32.ups", \
                                       ["<max_Timesteps> 10 </max_Timesteps>","<outputTimestepInterval>1</outputTimestepInterval>",'<checkpoint cycle = "4" interval = "0.001"/>'])