 Timestamp:
 09/06/21 12:11:21 (8 months ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/step2.py
r2215 r2216 99 99 res_interp = res.variables[var] 100 100 res_array = res_interp[:] 101 diff = np.zeros_like( ref_array ) 102 np.divide(ref_arrayres_array,ref_array,diff,where=(ref_array[:]>10**15)) 103 if ( np.max(np.abs(diff)) > 1*10**3 ): 104 validated = 1 105 diff = np.zeros_like( ref_array ) 106 np.divide(ref_arrayres_array,res_array,diff,where=(ref_array[:]>10**15)) 107 if ( np.max(np.abs(diff)) > 1*10**3 ): 108 validated = 1 101 if (res_array.shape == ref_array.shape): 102 diff = np.zeros_like( ref_array ) 103 np.divide(ref_arrayres_array,ref_array,diff,where=(ref_array[:]>10**15)) 104 if ( np.max(np.abs(diff)) > 1*10**9 ): 105 validated = 1 106 diff = np.zeros_like( ref_array ) 107 np.divide(ref_arrayres_array,res_array,diff,where=(ref_array[:]>10**15)) 108 if ( np.max(np.abs(diff)) > 1*10**9 ): 109 validated = 1 110 else: 111 validated = 1 109 112 report.write(folder_name+" "+folder_name+"@"+config_name+" "+folder_name+"@"+config_name+"@"+checkfile+" "+str(validated)+"\n") 110 113
Note: See TracChangeset
for help on using the changeset viewer.