Difference between revisions of "ROMS-JEDI Unit Test Cases"

From WikiROMS
Jump to navigationJump to search
(Created page with "<div class="title">ROMS-JEDI Unit Test Cases</div> There are several ways to run the '''ROMS-JEDI''' '''Unit Test Cases''': * Run all the available Unit Tests using '''ctest...")   (change visibility)
 
 
Line 1: Line 1:
<div class="title">ROMS-JEDI Unit Test Cases</div>
<div class="title">ROMS-JEDI Unit Test Cases</div>
<!-- Edit Template:ROMS-JEDI_TOC to modify this Table of Contents-->
<div style="float: left;margin: 0 20px 0 0;">{{ROMS-JEDI_TOC}}</div>
<div style="clear: both"></div>


There are several ways to run the '''ROMS-JEDI''' '''Unit Test Cases''':
There are several ways to run the '''ROMS-JEDI''' '''Unit Test Cases''':

Latest revision as of 20:20, 30 August 2023

ROMS-JEDI Unit Test Cases
ROMS-JEDI Menu
  1. Introduction  
  2. Compiling  
  3. Implementation  
  4. Observations  
  5. Unit Test Cases  


There are several ways to run the ROMS-JEDI Unit Test Cases:

  • Run all the available Unit Tests using ctest:
    cd build_wc13/roms-jedi  !> sub-directory of interface root location
    ctest -N  !> lists all the Unit Tests available
    ctest -E -V get_  !> runs all the Unit Tests
  • Run specific Unit Test using ctest:
    cd build_wc13/roms-jedi  !> sub-directory of interface root location
    ctest -VV -R test_romsjedi_geometry  !> run geometry Unit Test
  • Run specific Unit Test using mpirun to facilitate TotalView debugging:
    cd build_wc13/roms-jedi/test
    mpirun -n 2 ../../bin/romsjedi_hofx.x testinput/hofx_4d.yaml > & log &
    mpirun -n 2 -tv ../../bin/romsjedi_hofx.x testinput/hofx_4d.yaml &


Currently, the ROMS-JEDI has the following Unit Test Cases:

ctest -VV -R mpirun -n 2
romsjedi_coding_norms NA
test_romsjedi_geometry test_romsjedi_geometry testinput/geometry.yaml
test_romsjedi_geometryiterator test_romsjedi_geometryiterator testinput/geometryiterator.yaml
test_romsjedi_state test_romsjedi_state testinput/state.yaml
test_romsjedi_increment test_romsjedi_increment testinput/increment.yaml
test_romsjedi_model test_romsjedi_model testinput/model.yaml
test_romsjedi_linearmodel test_romsjedi_linearmodel testinput/linearmodel.yaml
test_romsjedi_error_covariance test_romsjedi_error_covariance testinput/error_covariance.yaml
test_romsjedi_hofx_nomodel ../../bin/romsjedi_hofx_nomodel.x testinput/hofx_nomodel.yaml
test_romsjedi_hofx_4d ../../bin/romsjedi_hofx.x testinput/hofx_4d.yaml
test_romsjedi_makeobs_4d ../../bin/romsjedi_hofx.x testinput/makeobs_4d.yaml
test_romsjedi_makeobs_4d_perturbed ../../bin/romsjedi_hofx.x testinput/makeobs_4d_perturbed.yaml
test_romsjedi_diffstates ../../bin/romsjedi_diffstates.x testinput/diffstates.yaml
test_romsjedi_forecast_roms ../../bin/romsjedi_forecast.x testinput/forecast_roms.yaml
test_romsjedi_bump_parameters_cor_nicas ../../bin/romsjedi_error_covariance_toolbox.x testinput/parameters_bump_cor_nicas.yaml
test_romsjedi_bump_loc_parameters_cor_nicas ../../bin/romsjedi_error_covariance_toolbox.x testinput/parameters_bump_loc_cor_nicas.yaml
test_romsjedi_dirac_cov_nicas ../../bin/romsjedi_error_covariance_toolbox.x testinput/dirac_cov_nicas.yaml
test_romsjedi_ens_pert ../../bin/romsjedi_ens_pert.x testinput/ens_perturbation.yaml
test_romsjedi_ens_variance ../../bin/romsjedi_ens_variance.x testinput/ens_variance.yaml
test_romsjedi_ens_mean_variance ../../bin/romsjedi_ens_mean_variance.x testinput/ens_mean_variance.yaml
test_romsjedi_ens_recenter ../../bin/romsjedi_ens_recenter.x testinput/ens_recenter.yaml
test_romsjedi_ens_hofx mpirun -n 6 ../../bin/romsjedi_ens_hofx.x testinput/ens_hofx.yaml
test_romsjedi_dirac_ens_cov_nicas ../../bin/romsjedi_error_covariance_toolbox.x testinput/dirac_ens_cov_nicas.yaml
test_romsjedi_3dvar_zero_obs ../../bin/romsjedi_var.x testinput/3dvar_zero_obs.yaml
test_romsjedi_3dvar_regular_single_obs ../../bin/romsjedi_var.x testinput/3dvar_regular_single_obs.yaml
test_romsjedi_3dfgat_single_obs ../../bin/romsjedi_var.x testinput/3dfgat_single_obs.yaml
test_romsjedi_4dfgat_single_obs ../../bin/romsjedi_var.x testinput/4dfgat_single_obs.yaml
test_romsjedi_3dvar_regular_primal ../../bin/romsjedi_var.x testinput/3dvar_regular_primal.yaml
test_romsjedi_3dvar_regular_dual ../../bin/romsjedi_var.x testinput/3dvar_regular_dual.yaml
test_romsjedi_3dfgat_primal ../../bin/romsjedi_var.x testinput/3dfgat_primal.yaml
test_romsjedi_3dfgat_dual ../../bin/romsjedi_var.x testinput/3dfgat_dual.yaml
test_romsjedi_4dfgat_primal ../../bin/romsjedi_var.x testinput/4dfgat_primal.yaml
test_romsjedi_4dfgat_dual ../../bin/romsjedi_var.x testinput/4dfgat_dual.yaml
test_romsjedi_3denvar_regular_primal ../../bin/romsjedi_var.x testinput/3denvar_regular_primal.yaml
test_romsjedi_3denvar_regular_dual ../../bin/romsjedi_var.x testinput/3denvar_regular_dual.yaml
test_romsjedi_3denvar_4dfgat_primal ../../bin/romsjedi_var.x testinput/3denvar_4dfgat_primal.yaml
test_romsjedi_3denvar_4dfgat_dual ../../bin/romsjedi_var.x testinput/3denvar_4dfgat_dual.yaml
test_romsjedi_3dhyb_regular_primal ../../bin/romsjedi_var.x testinput/3dhyb_regular_primal.yaml
test_romsjedi_3dhyb_regular_dual ../../bin/romsjedi_var.x testinput/3dhyb_regular_dual.yaml
test_romsjedi_3dhyb_4dfgat_primal ../../bin/romsjedi_var.x testinput/3dhyb_4dfgat_primal.yaml
test_romsjedi_3dhyb_4dfgat_dual ../../bin/romsjedi_var.x testinput/3dhyb_4dfgat_dual.yaml
test_romsjedi_letkf ../../bin/romsjedi_letkf.x testinput/letkf.yaml
test_romsjedi_letkf_split_observer ../../bin/romsjedi_letkf.x testinput/letkf_split_observer.yaml
test_romsjedi_letkf_split_solver ../../bin/romsjedi_letkf.x testinput/letkf_split_solver.yaml
test_romsjedi_letkf_3dhyb ../../bin/romsjedi_var.x testinput/letkf_3dhyb.yaml