- Timestamp:
- 11/26/19 13:55:31 (4 years ago)
- Location:
- XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/check.py
r1771 r1776 219 219 h.write("Config : "+configName+"\n") 220 220 l.write("<p>Config : "+configName+"</p>") 221 endloop=False222 221 for line in f: 223 222 line=line.strip() -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/generate_table.py
r1775 r1776 1 2 import array as arr 3 import collections 4 import glob 1 5 import os 2 6 import sys 3 import array as arr 4 import collections 7 import subprocess 8 import socket 9 import os.path 10 from os import path 5 11 6 12 from collections import Counter … … 12 18 file.read(0) 13 19 for line in file: 14 for word in line.split(" "): 15 if word.endswith(".nc") or word.endswith("_nc_files"): 16 yield word 17 break 20 if not line.startswith("#"): 21 for word in line.split(" "): 22 if word.endswith(".nc") or word.endswith("_nc_files"): 23 yield word 24 break 18 25 19 26 def configname_list_generator(file_to_open): … … 22 29 file.read(0) 23 30 for line in file: 24 for word in line.split(" "): 25 if "config_" in word: 26 yield word 27 break 31 if not line.startswith("#"): 32 for word in line.split(" "): 33 if "config_" in word: 34 yield word 35 break 28 36 29 37 def foldername_list_generator(file_to_open): … … 33 41 file.read(0) 34 42 for line in file: 35 for word in line.split(" "): 36 if word.startswith("test_"): 37 yield word 38 break 43 if not line.startswith("#"): 44 for word in line.split(" "): 45 if word.startswith("test_"): 46 yield word 47 break 39 48 40 49 def result_list_generator(file_to_open): … … 43 52 file.read(0) 44 53 for line in file: 45 for word in line.split(" "): 46 if word == '-1' or word == '0' or word == '1': 47 yield(word) 48 break 54 if not line.startswith("#"): 55 for word in line.split(" "): 56 if word == '-1' or word == '0' or word == '1': 57 yield(word) 58 break 49 59 50 60 def OSinfo(runthis): 61 red = lambda text: '\033[0;31m' + text + '\033[0m' 62 osstdout = subprocess.Popen(runthis, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True) 63 theInfo = osstdout.communicate()[0].strip() 64 if osstdout.returncode!=0: 65 print(red(runthis+" FAILED")) 66 print >> sys.stderr, osstdout.returncode 67 sys.exit() 68 # else: 69 # print(runthis+" OK") 51 70 52 71 def main(): 53 54 if os.path.exists('plein_report.txt') : 55 file_to_open="plein_report.txt" 72 unfold_icon = '⮯' 73 fold_icon = '⮭' 74 75 current_revision_report = sys.argv[1] 76 77 if os.path.exists(current_revision_report) : 78 file_to_open=current_revision_report 56 79 else : 57 80 file_to_open="plein_report_example.txt" 58 81 82 83 f=open(file_to_open, "r") 84 for line in f : 85 if line.startswith("#revision"): 86 revision_number = line.split(" ")[1].replace("\n", "") 87 elif line.startswith("#build_dir"): 88 build_dir = line.split(" ")[1].replace("\n", "") 89 elif line.startswith("#arch"): 90 arch = line.split(" ")[1].replace("\n", "") 91 elif line.startswith("#machine"): 92 machine = line.split(" ")[1].replace("\n", "") 93 if machine == "jeanzay": 94 machine = "Jean-Zay" 95 elif machine == "irene": 96 machine = "Irene" 97 else : 98 machine = "other" 99 elif line.startswith("#relurl"): 100 words = line.split("/") 101 words_size = len(words) 102 branch = words[words_size-1].replace("\n", "") 103 59 104 folderlist=[] 60 105 for x in foldername_list_generator(file_to_open): … … 233 278 file_list[x] = new_word 234 279 235 236 f=open("xios_table.js", "w") 237 f.write("document.write(`\n") 238 f.write("<html>\n") 239 f.write("<head>\n") 240 f.write("</head>\n") 241 f.write("<body>\n") 242 f.write(" <table id=\"xiostable\">\n") 243 f.write(" <thead></thead>\n") 244 f.write(" <tfoot></tfoot>\n") 245 f.write(" <tbody>\n") 246 f.write(" <tr class=\"level0\" style=\"background-color:#85c1e9;font-size:1em;\" >\n") 247 f.write(" <td><p>src : "+file_to_open+"</p>\n") 248 f.write(" <p><ul><li>❌ : Failed</li><li>❎ : Initialized</li><li>✅ : Passed</li></ul></p></tb>\n") 249 f.write(" <td></td>\n") 250 f.write(" <td></td>\n") 251 f.write(" <td></td>\n") 252 f.write(" <td></td>\n") 253 f.write(" <td></td>\n") 254 f.write(" <td></td>\n") 255 f.write(" <td></td>\n") 256 f.write(" </tr>\n") 257 f.write(" <tr class=\"level1\" style=\"background-color:#85c1e9;font-size:1.6em;\" >\n") 258 f.write(" <td>XIOS Unit tests <span id=\"icon_level1_1\" onclick=\"level1_unfold();\" style=\"display:inline\" title=\"unfold\">🔽</span>\n") 259 f.write(" <span id=\"icon_level1_2\" onclick=\"level1_fold();\" style=\"display:none\" title=\"fold\">🔼</span></td>\n") 260 f.write(" <td></td>\n") 261 f.write(" <td></td>\n") 262 f.write(" <td></td>\n") 263 f.write(" <td style=\"border-left: 0px\" class=\"testanswer\">"+ ans_dict[level1_answer]+"</td>\n") 264 f.write(" <td></td>\n") 265 f.write(" <td></td>\n") 266 f.write(" <td></td>\n") 267 f.write(" </tr>\n") 268 269 270 x_offset = 0 271 y_offset = 0 272 for x in range(nb_algo): 273 f.write(" <tr class=\"level2\" data-algo-type=\""+algo_list[x]+"\" style=\"display:none;background-color:#aed6f1;font-size:1.4em;\">\n") 274 f.write(" <td></td>\n") 275 f.write(" <td>"+algo_list[x]+" <span id=\"icon_level2_"+algo_list[x]+"_1\" onClick=\"level2_unfold(\'"+algo_list[x]+"\');\" style=\"display:inline\" title=\"unfold\">🔽</span>\n") 276 f.write(" <span id=\"icon_level2_"+algo_list[x]+"_2\" onClick=\"level2_fold(\'"+algo_list[x]+"\');\" style=\"display:none\" title=\"fold\">🔼</span></td>\n") 280 if os.path.exists("xios_table_"+revision_number+".js") : 281 print("table for revision "+revision_number+" exists already") 282 else : 283 f=open("xios_table_"+revision_number+".js", "w") 284 f.write("document.write(`\n") 285 f.write("<html>\n") 286 f.write("<head>\n") 287 f.write("</head>\n") 288 f.write("<body>\n") 289 f.write(" <div id=\"navborder_"+revision_number+"\" class=\"class_navborder\">\n") 290 f.write(" <p id=\"xiosinfo\">Information of XIOS source:</p>\n") 291 f.write(" <table id=\"xiosinfotable\">\n") 292 f.write(" <tr><td>Branch</td><td><em>"+branch+"</em></td></tr>\n") 293 f.write(" <tr><td>Revision</td><td><em>"+revision_number+"</em></td></tr>\n") 294 f.write(" <tr><td>Machine</td><td><em>"+machine+"</em></td></tr>\n") 295 f.write(" <tr><td>Architecture</td><td><em>"+arch+"</em></td></tr>\n") 296 f.write(" <tr><td>Compile mode</td><td><em>prod</em></td></tr>\n") 297 f.write(" <tr><td>Build directory</td><td><em>"+build_dir+"</em></td></tr>\n") 298 f.write(" </table>\n") 299 f.write(" </div>\n") 300 f.write(" <table id=\"xiostable_"+revision_number+"\" class=\"class_xiostable\">\n") 301 f.write(" <thead></thead>\n") 302 f.write(" <tfoot></tfoot>\n") 303 f.write(" <tbody>\n") 304 f.write(" <tr class=\"level1\" style=\"background-color:#85c1e9;font-size:1.6em;\" >\n") 305 f.write(" <td>"+revision_number+" XIOS Unit tests <span id=\""+revision_number+"_icon_level1_1\" onclick=\"level1_unfold(\'"+revision_number+"\');\" style=\"display:inline\" title=\"unfold\">"+unfold_icon+"</span>\n") 306 f.write(" <span id=\""+revision_number+"_icon_level1_2\" onclick=\"level1_fold(\'"+revision_number+"\');\" style=\"display:none\" title=\"fold\">"+fold_icon+"</span></td>\n") 277 307 f.write(" <td><div class=\"dropdown\"><button class=\"dropbtn\">🔎</button>\n") 278 308 f.write(" <div class=\"dropdown-content\">\n") 279 f.write(" <a href=\"#\" onclick=\"show_param_"+algo_list[x]+"()\">show user_params.def</a>\n") 309 f.write(" <a href=\"#\" onclick=\"show_xios_info(\'"+revision_number+"\')\">show/hide XIOS info</a>\n") 310 f.write(" <a href=\"#\" onclick=\"show_plein_report(\'"+revision_number+"\')\">show plein report</a>\n") 280 311 f.write(" </div></div></td>\n") 281 f.write(" <td> </td>\n") 282 f.write(" <td> </td>\n") 283 f.write(" <td class=\"testanswer\">"+ans_dict[level2_answer[x]]+"</td>\n") 284 f.write(" <td> </td>\n") 285 f.write(" <td> </td>\n") 312 f.write(" <td></td>\n") 313 f.write(" <td></td>\n") 314 f.write(" <td style=\"border-left: 0px\" class=\"testanswer\">"+ ans_dict[level1_answer]+"</td>\n") 315 f.write(" <td></td>\n") 316 f.write(" <td></td>\n") 317 f.write(" <td></td>\n") 286 318 f.write(" </tr>\n") 287 319 288 for y in range(nb_configs[x]): 289 f.write(" <tr class=\"level3_"+algo_list[x]+"\" data-algoconfig-type=\""+algo_list[x]+"_"+old_config_list[y_offset]+"\" style=\"display:none;background-color:#d6eaf8;font-size:1.2em;\">\n") 320 321 x_offset = 0 322 y_offset = 0 323 for x in range(nb_algo): 324 f.write(" <tr class=\"level2\" data-algo-type=\""+algo_list[x]+"\" style=\"display:none;background-color:#aed6f1;font-size:1.4em;\">\n") 290 325 f.write(" <td></td>\n") 291 f.write(" <td></td>\n") 292 f.write(" <td>"+config_list[y_offset]+" <span id=\"icon_level3_"+algo_list[x]+"_"+old_config_list[y_offset]+"_1\" onClick=\"level3_unfold(\'"+algo_list[x]+"_"+old_config_list[y_offset]+"\');\" style=\"display:inline\" title=\"unfold\">🔽</span>\n") 293 f.write(" <span id=\"icon_level3_"+algo_list[x]+"_"+old_config_list[y_offset]+"_2\" onClick=\"level3_fold(\'"+algo_list[x]+"_"+old_config_list[y_offset]+"\');\" style=\"display:none\" title=\"fold\">🔼</span></td>\n") 326 f.write(" <td>"+algo_list[x]+" <span id=\""+revision_number+"_icon_level2_"+algo_list[x]+"_1\" onClick=\"level2_unfold(\'"+revision_number+"\',\'"+algo_list[x]+"\');\" style=\"display:inline\" title=\"unfold\">"+unfold_icon+"</span>\n") 327 f.write(" <span id=\""+revision_number+"_icon_level2_"+algo_list[x]+"_2\" onClick=\"level2_fold(\'"+revision_number+"\',\'"+algo_list[x]+"\');\" style=\"display:none\" title=\"fold\">"+fold_icon+"</span></td>\n") 294 328 f.write(" <td><div class=\"dropdown\"><button class=\"dropbtn\">🔎</button>\n") 295 329 f.write(" <div class=\"dropdown-content\">\n") 296 f.write(" <a href=\"#\" onclick=\"show_param_"+algo_list[x]+"_config("+repr(old_config_list[y_offset])+")\">show all_param.def</a>\n") 297 f.write(" <a href=\"#\" onclick=\"show_user_param_"+algo_list[x]+"_config("+repr(old_config_list[y_offset])+")\">show user_param.def</a>\n") 330 f.write(" <a href=\"#\" onclick=\"show_param_"+algo_list[x]+"(\'"+revision_number+"\')\">show user_params.def</a>\n") 298 331 f.write(" </div></div></td>\n") 299 y_position=y_offset 300 y_offset+=1 301 f.write(" <td></td>\n") 302 f.write(" <td></td>\n") 303 f.write(" <td class=\"testanswer\">"+ ans_dict[level3_answer[x][y]]+"</td>\n") 304 f.write(" <td></td>\n") 332 f.write(" <td> </td>\n") 333 f.write(" <td> </td>\n") 334 f.write(" <td class=\"testanswer\">"+ans_dict[level2_answer[x]]+"</td>\n") 335 f.write(" <td> </td>\n") 336 f.write(" <td> </td>\n") 305 337 f.write(" </tr>\n") 306 338 307 for z in range(nb_files[x]):308 f.write(" <tr class=\"level 4_"+algo_list[x]+"_"+old_config_list[y_position]+"\" style=\"display:none;background-color:#ebf5fb;\">\n")339 for y in range(nb_configs[x]): 340 f.write(" <tr class=\"level3_"+algo_list[x]+"\" data-algoconfig-type=\""+algo_list[x]+"_"+old_config_list[y_offset]+"\" style=\"display:none;background-color:#d6eaf8;font-size:1.2em;\">\n") 309 341 f.write(" <td></td>\n") 310 342 f.write(" <td></td>\n") 311 f.write(" <td></td>\n") 312 f.write(" <td>"+file_list[x_offset+z]+"</td>\n") 343 f.write(" <td>"+config_list[y_offset]+" <span id=\""+revision_number+"_icon_level3_"+algo_list[x]+"_"+old_config_list[y_offset]+"_1\" onClick=\"level3_unfold(\'"+revision_number+"\',\'"+algo_list[x]+"_"+old_config_list[y_offset]+"\');\" style=\"display:inline\" title=\"unfold\">"+unfold_icon+"</span>\n") 344 f.write(" <span id=\""+revision_number+"_icon_level3_"+algo_list[x]+"_"+old_config_list[y_offset]+"_2\" onClick=\"level3_fold(\'"+revision_number+"\',\'"+algo_list[x]+"_"+old_config_list[y_offset]+"\');\" style=\"display:none\" title=\"fold\">"+fold_icon+"</span></td>\n") 345 f.write(" <td><div class=\"dropdown\"><button class=\"dropbtn\">🔎</button>\n") 346 f.write(" <div class=\"dropdown-content\">\n") 347 f.write(" <a href=\"#\" onclick=\"show_param_"+algo_list[x]+"_config(\'"+revision_number+"\',"+repr(old_config_list[y_offset])+")\">show all_param.def</a>\n") 348 f.write(" <a href=\"#\" onclick=\"show_user_param_"+algo_list[x]+"_config(\'"+revision_number+"\',"+repr(old_config_list[y_offset])+")\">show user_param.def</a>\n") 349 f.write(" </div></div></td>\n") 350 y_position=y_offset 351 y_offset+=1 313 352 f.write(" <td></td>\n") 314 353 f.write(" <td></td>\n") 354 f.write(" <td class=\"testanswer\">"+ ans_dict[level3_answer[x][y]]+"</td>\n") 315 355 f.write(" <td></td>\n") 316 f.write(" <td class=\"testanswer\">"+ ans_dict[level4_answer[x][y][z]]+"</td>\n") 317 f.write(" </tr>\n") 318 319 x_offset = x_offset+nb_files[x] 320 321 f.write(" </tbody>\n") 322 f.write(" </table>\n") 323 f.write("<script>\n") 324 f.write(" var ans = document.getElementsByClassName('testanswer')\n") 325 f.write(" for (var i = 0; i < ans.length; i++) {\n") 326 f.write(" var cell = ans[i]\n") 327 f.write(" if (cell.textContent == 'Passed') {\n") 328 f.write(" cell.classList.add('green') }\n") 329 f.write(" else if (cell.textContent == 'Failed') {\n") 330 f.write(" cell.classList.add('red') }\n") 331 f.write(" else if (cell.textContent == 'Initialized') {\n") 332 f.write(" cell.classList.add('goldenrod') }\n") 333 f.write(" }\n") 334 335 f.write("\n\n") 356 f.write(" </tr>\n") 357 358 for z in range(nb_files[x]): 359 f.write(" <tr class=\"level4_"+algo_list[x]+"_"+old_config_list[y_position]+"\" style=\"display:none;background-color:#ebf5fb;\">\n") 360 f.write(" <td></td>\n") 361 f.write(" <td></td>\n") 362 f.write(" <td></td>\n") 363 f.write(" <td>"+file_list[x_offset+z]+"</td>\n") 364 f.write(" <td></td>\n") 365 f.write(" <td></td>\n") 366 f.write(" <td></td>\n") 367 f.write(" <td class=\"testanswer\">"+ ans_dict[level4_answer[x][y][z]]+"</td>\n") 368 f.write(" </tr>\n") 369 370 x_offset = x_offset+nb_files[x] 371 372 f.write(" </tbody>\n") 373 f.write(" </table>\n") 374 # f.write("<script>\n") 375 # f.write(" var ans = document.getElementsByClassName('testanswer')\n") 376 # f.write(" for (var i = 0; i < ans.length; i++) {\n") 377 # f.write(" var cell = ans[i]\n") 378 # f.write(" if (cell.textContent == 'Passed') {\n") 379 # f.write(" cell.classList.add('green') }\n") 380 # f.write(" else if (cell.textContent == 'Failed') {\n") 381 # f.write(" cell.classList.add('red') }\n") 382 # f.write(" else if (cell.textContent == 'Initialized') {\n") 383 # f.write(" cell.classList.add('goldenrod') }\n") 384 # f.write(" }\n") 385 386 # f.write("\n\n") 336 387 337 f.write("</script>\n")338 339 f.write("</body>\n")340 f.write("</html>\n")341 f.write("`);\n")342 343 344 345 f.close()388 # f.write("</script>\n") 389 390 f.write("</body>\n") 391 f.write("</html>\n") 392 f.write("`);\n") 393 394 395 396 f.close() 346 397 347 398 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/job_jz.sh
r1771 r1776 24 24 module load cmake 25 25 module load cdo 26 module load subversion 26 27 #module load arm-forge 27 28 … … 38 39 39 40 rm -f plein_report.txt 41 echo -n "#revision " >> plein_report.txt 42 svn info --show-item revision .. >> plein_report.txt 43 # echo -n "#url " >> plein_report.txt 44 # svn info --show-item url .. >> plein_report.txt 45 echo -n "#relurl " >> plein_report.txt 46 svn info --show-item relative-url .. >> plein_report.txt 47 echo -n "#machine " >> plein_report.txt 48 echo $machine_name >> plein_report.txt 49 echo -n "#build_dir " >> plein_report.txt 50 echo $build_dir >> plein_report.txt 51 52 export arch_dir=$(readlink ../$build_dir/arch.fcm .. 2>&1) 53 echo $arch_dir 54 my_arch=$(echo $arch_dir | sed 's|.*/arch-||' | sed 's|\(.*\).fcm.*|\1|' 2>&1) 55 echo $my_arch 56 57 58 echo -n "#arch " >> plein_report.txt 59 echo $my_arch >> plein_report.txt 60 61 export xios_revision=$(svn info --show-item revision .. 2>&1) 62 echo $xios_revision 40 63 41 64 rm -f setup.sh … … 82 105 #srun --mpi=pmi2 ../bin/test_client.exe 83 106 84 python generate_table.py 107 cp plein_report.txt ../Web/plein_report_$xios_revision.txt -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/plein_report_example.txt
r1775 r1776 1 #1772 1 2 test_domain_algo domain_algo@config_UsingSrv2=true_NbServers=2_ATMdomain=lmdz domain_algo@UsingSrv2=true_NbServers=2_ATMdomain=lmdz@atm_output.nc -1 2 3 test_domain_algo domain_algo@config_UsingSrv2=true_NbServers=2_ATMdomain=lmdz domain_algo@UsingSrv2=true_NbServers=2_ATMdomain=lmdz@atm_output_expand.nc 0 … … 30 31 test_function function@config_UsingSrv2=true_NbServers=2_ATMdomain=lmdz function@UsingSrv2=true_NbServers=2_ATMdomain=lmdz@atm_output.nc 1 31 32 test_function function@config_UsingSrv2=false_NbServers=4_ATMdomain=lmdz function@UsingSrv2=false_NbServers=4_ATMdomain=lmdz@atm_output.nc 1 32 test_function function@config_UsingSrv2=false_NbServers=2_ATMdomain=lmdz function@UsingSrv2=false_NbServers=2_ATMdomain=lmdz@atm_output.nc 1 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/xios-style.css
r1774 r1776 56 56 } 57 57 58 #navborder 59 { 60 border: solid 2px black; 61 margin: 5px; 62 } 58 /* #navborder 59 { 60 margin: 5px; 61 } */ 62 63 .class_navborder 64 { 65 /* border: solid 2px black; */ 66 margin: 5px; 67 display: none; 68 } 69 70 .class_navborder.show 71 { 72 /* border: solid 2px black; */ 73 margin: 5px; 74 display: block; 75 } 76 77 .class_navborder.hide 78 { 79 /* border: solid 2px black; */ 80 margin: 5px; 81 display: none; 82 } 83 63 84 64 85 footer … … 77 98 td 78 99 { 79 /* border: solid 1px black; */100 border: solid 1px white; 80 101 } 81 102 … … 85 106 } 86 107 87 #xiostable 108 /* #xiostable 109 { 110 font-weight: bolder; 111 margin: 20px; 112 border-collapse: collapse; 113 } */ 114 115 .class_xiostable 88 116 { 89 117 /* font-size: large; */ … … 91 119 margin: 20px; 92 120 border-collapse: collapse; 93 } 121 display: block; 122 } 123 124 .class_xiostable.show 125 { 126 /* font-size: large; */ 127 font-weight: bolder; 128 margin: 20px; 129 border-collapse: collapse; 130 display: block; 131 } 132 133 .class_xiostable.hide 134 { 135 /* font-size: large; */ 136 font-weight: bolder; 137 margin: 20px; 138 border-collapse: collapse; 139 display: none; 140 } 141 94 142 95 143 button.btn.add::before { … … 125 173 } 126 174 127 .fold {128 background: -webkit-linear-gradient(top, #e5e5e5, #ccc);129 padding: 10px;130 width: 280px;131 height: 80px;132 color: #999;133 -webkit-transition: all 0.3s linear;134 -moz-transition: all 0.3s linear;135 transition: all 0.3s linear;136 }137 138 .unfolder { display: none; }139 140 .toggle-label {141 display: inline-block;142 cursor: pointer;143 font-size: 11px;144 border-radius: 5px;145 padding: 5px;146 }147 .unfold-icon, .fold-icon {148 color: #999;149 /* fixed width to stop the icon from wiggling */150 width: 10px;151 display: inline-block;152 }153 .unfolder ~ .fold {154 display: none;155 }156 .unfolder ~ label .fold-icon {157 display: none;158 }159 160 .unfolder:checked ~ .fold {161 display: block;162 }163 .unfolder:checked ~ label .fold-icon {164 display: inline-block;165 }166 .unfolder:checked ~ label .unfold-icon {167 display: none;168 }169 175 170 176 .dropbtn { -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/xios_compile.html
r1774 r1776 45 45 <p><label for="revision">Revision : </label> 46 46 <select name="revision" id="revision"> 47 <option value="0" selected> Choose a revision...</option>47 <option value="0" selected>All revisions ...</option> 48 48 <option value="1743">1743</option> 49 49 <option value="1742">1742</option> -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/xios_report.html
r1775 r1776 5 5 <link rel="stylesheet" href="xios-style.css"/> 6 6 <title>XIOS Unit Tests Report - Le Site Web</title> 7 < !-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> -->7 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 8 8 <!-- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/> --> 9 9 <!-- <script> … … 25 25 } 26 26 27 function level1_unfold( ) {28 var ans = document.getElement sByClassName('level2')27 function level1_unfold(my_revision) { 28 var ans = document.getElementById('xiostable_'+my_revision).getElementsByClassName('level2') 29 29 for (var i = 0; i < ans.length; i++) { 30 30 var cell = ans[i] 31 31 cell.style.display = 'table-row'; 32 document.getElementById("icon_level1_1").style.display='none'; 33 document.getElementById("icon_level1_2").style.display='inline'; 34 } 35 } 36 37 function level1_fold() { 38 var ans = document.getElementsByClassName('level2') 32 document.getElementById(my_revision+"_icon_level1_1").style.display='none'; 33 document.getElementById(my_revision+"_icon_level1_2").style.display='inline'; 34 } 35 } 36 37 38 39 // function level1_unfold() { 40 // var ans = document.getElementsByClassName('level2') 41 // for (var i = 0; i < ans.length; i++) { 42 // var cell = ans[i] 43 // cell.style.display = 'table-row'; 44 // document.getElementById("icon_level1_1").style.display='none'; 45 // document.getElementById("icon_level1_2").style.display='inline'; 46 // } 47 // } 48 49 function level1_fold(my_revision) { 50 var ans = document.getElementById('xiostable_'+my_revision).getElementsByClassName('level2') 39 51 for (var i = 0; i < ans.length; i++) { 40 52 var cell = ans[i] 41 53 cell.style.display = 'none'; 42 document.getElementById( "icon_level1_2").style.display='none';43 document.getElementById( "icon_level1_1").style.display='inline';54 document.getElementById(my_revision+"_icon_level1_2").style.display='none'; 55 document.getElementById(my_revision+"_icon_level1_1").style.display='inline'; 44 56 algoType = cell.getAttribute("data-algo-type"); 45 level2_fold(algoType) 46 } 47 } 48 49 50 51 function level2_unfold(algo_name) { 52 var ans = document.getElementsByClassName('level3_'+algo_name) 57 level2_fold(my_revision, algoType) 58 } 59 } 60 61 // function level1_fold() { 62 // var ans = document.getElementsByClassName('level2') 63 // for (var i = 0; i < ans.length; i++) { 64 // var cell = ans[i] 65 // cell.style.display = 'none'; 66 // document.getElementById("icon_level1_2").style.display='none'; 67 // document.getElementById("icon_level1_1").style.display='inline'; 68 // algoType = cell.getAttribute("data-algo-type"); 69 // level2_fold(algoType) 70 // } 71 // } 72 73 function level2_unfold(my_revision, algo_name) { 74 var ans = document.getElementById('xiostable_'+my_revision).getElementsByClassName('level3_'+algo_name) 53 75 for (var i = 0; i < ans.length; i++) { 54 76 var cell = ans[i] 55 77 cell.style.display = 'table-row'; 56 document.getElementById( "icon_level2_"+algo_name+"_1").style.display='none';57 document.getElementById( "icon_level2_"+algo_name+"_2").style.display='inline';58 } 59 60 } 61 62 function level2_fold( algo_name) {63 var ans = document.getElement sByClassName('level3_'+algo_name)78 document.getElementById(my_revision+"_icon_level2_"+algo_name+"_1").style.display='none'; 79 document.getElementById(my_revision+"_icon_level2_"+algo_name+"_2").style.display='inline'; 80 } 81 82 } 83 84 function level2_fold(my_revision, algo_name) { 85 var ans = document.getElementById('xiostable_'+my_revision).getElementsByClassName('level3_'+algo_name) 64 86 for (var i = 0; i < ans.length; i++) { 65 87 var cell = ans[i] 66 88 cell.style.display = 'none'; 67 document.getElementById( "icon_level2_"+algo_name+"_2").style.display='none';68 document.getElementById( "icon_level2_"+algo_name+"_1").style.display='inline';89 document.getElementById(my_revision+"_icon_level2_"+algo_name+"_2").style.display='none'; 90 document.getElementById(my_revision+"_icon_level2_"+algo_name+"_1").style.display='inline'; 69 91 algoconfigType = cell.getAttribute("data-algoconfig-type"); 70 level3_fold(algoconfigType) 71 } 72 73 } 74 75 76 77 function level3_unfold(algo_config_name) { 78 var ans = document.getElementsByClassName('level4_'+algo_config_name) 92 level3_fold(my_revision, algoconfigType) 93 } 94 95 } 96 97 98 // function level2_unfold(algo_name) { 99 // var ans = document.getElementsByClassName('level3_'+algo_name) 100 // for (var i = 0; i < ans.length; i++) { 101 // var cell = ans[i] 102 // cell.style.display = 'table-row'; 103 // document.getElementById("icon_level2_"+algo_name+"_1").style.display='none'; 104 // document.getElementById("icon_level2_"+algo_name+"_2").style.display='inline'; 105 // } 106 107 // } 108 109 // function level2_fold(algo_name) { 110 // var ans = document.getElementsByClassName('level3_'+algo_name) 111 // for (var i = 0; i < ans.length; i++) { 112 // var cell = ans[i] 113 // cell.style.display = 'none'; 114 // document.getElementById("icon_level2_"+algo_name+"_2").style.display='none'; 115 // document.getElementById("icon_level2_"+algo_name+"_1").style.display='inline'; 116 // algoconfigType = cell.getAttribute("data-algoconfig-type"); 117 // level3_fold(algoconfigType) 118 // } 119 120 // } 121 122 123 function level3_unfold(my_revision, algo_config_name) { 124 var ans = document.getElementById('xiostable_'+my_revision).getElementsByClassName('level4_'+algo_config_name) 79 125 for (var i = 0; i < ans.length; i++) { 80 126 var cell = ans[i] 81 127 cell.style.display = 'table-row'; 82 document.getElementById( "icon_level3_"+algo_config_name+"_1").style.display='none';83 document.getElementById( "icon_level3_"+algo_config_name+"_2").style.display='inline';84 } 85 } 86 87 function level3_fold( algo_config_name) {88 var ans = document.getElement sByClassName('level4_'+algo_config_name)128 document.getElementById(my_revision+"_icon_level3_"+algo_config_name+"_1").style.display='none'; 129 document.getElementById(my_revision+"_icon_level3_"+algo_config_name+"_2").style.display='inline'; 130 } 131 } 132 133 function level3_fold(my_revision, algo_config_name) { 134 var ans = document.getElementById('xiostable_'+my_revision).getElementsByClassName('level4_'+algo_config_name) 89 135 for (var i = 0; i < ans.length; i++) { 90 136 var cell = ans[i] 91 137 cell.style.display = 'none'; 92 document.getElementById("icon_level3_"+algo_config_name+"_2").style.display='none'; 93 document.getElementById("icon_level3_"+algo_config_name+"_1").style.display='inline'; 94 } 95 } 138 document.getElementById(my_revision+"_icon_level3_"+algo_config_name+"_2").style.display='none'; 139 document.getElementById(my_revision+"_icon_level3_"+algo_config_name+"_1").style.display='inline'; 140 } 141 } 142 143 144 145 // function level3_unfold(algo_config_name) { 146 // var ans = document.getElementsByClassName('level4_'+algo_config_name) 147 // for (var i = 0; i < ans.length; i++) { 148 // var cell = ans[i] 149 // cell.style.display = 'table-row'; 150 // document.getElementById("icon_level3_"+algo_config_name+"_1").style.display='none'; 151 // document.getElementById("icon_level3_"+algo_config_name+"_2").style.display='inline'; 152 // } 153 // } 154 155 // function level3_fold(algo_config_name) { 156 // var ans = document.getElementsByClassName('level4_'+algo_config_name) 157 // for (var i = 0; i < ans.length; i++) { 158 // var cell = ans[i] 159 // cell.style.display = 'none'; 160 // document.getElementById("icon_level3_"+algo_config_name+"_2").style.display='none'; 161 // document.getElementById("icon_level3_"+algo_config_name+"_1").style.display='inline'; 162 // } 163 // } 164 165 96 166 </script> 97 167 … … 109 179 <li><a href="https://forge.ipsl.jussieu.fr/ioserver/wiki" target="_blank">XIOS wiki page</a></li> 110 180 <li><a href="graph.html" target="_blank">Workflow Graph</a></li> 111 < li><a href="plein_report.txt" target="_blank">Plein Text Report</a>(0:initialized 1:passed -1:failed)</li>181 <!-- <li><a href="plein_report.txt" target="_blank">Plein Text Report</a>(0:initialized 1:passed -1:failed)</li> --> 112 182 </ul> 113 183 </div> 114 184 115 <div id="navborder"> 116 <p id="xiosinfo">Informatin of XIOS source:</p> 117 <table id="xiosinfotable"> 118 <tr> 119 <td>Branch</td> 120 <td><em>trunk</em></td> 121 </tr> 122 <tr> 123 <td>Revision</td> 124 <td><em>1740</em></td> 125 </tr> 126 <tr> 127 <td>Machine</td> 128 <td><em>Juliot-Curie</em></td> 129 </tr> 130 <tr> 131 <td>Architecture</td> 132 <td><em>X86_IRENE</em></td> 133 </tr> 134 <tr> 135 <td>Compile mode</td> 136 <td><em>prod</em></td> 137 </tr> 138 </table> 139 </div> 185 140 186 </nav> 141 187 <section> … … 149 195 <h2>Results of unit tests</h2> 150 196 151 <!-- <div>152 <input type="checkbox" id="toggle" class="unfolder"/>153 <label for="toggle" class="toggle-label"><span class="unfold-icon">▶</span><span class="fold-icon">▼</span> Title</label>154 155 <div class="fold">156 Content157 </div>158 </div> -->159 197 160 198 199 161 200 <!-- <div id="content"></div> --> 162 <script src="xios_table.js"></script> 201 <form method="post" style="margin-left: 25px;"> 202 <p><label for="revision">Revision : </label> 203 <select name="revision" id="revision"> 204 <option value="0" selected>All revisions ...</option> 205 <script src="xios_src_2.js"></script> 206 <!-- <option value="1775">1775</option> 207 <option value="1774">1774</option> 208 <option value="1773">1773</option> --> 209 </select> 210 </p> 211 </form> 212 213 <ul><li>❌ : Failed</li><li>❎ : Initialized</li><li>✅ : Passed</li></ul> 214 215 <script src="xios_src_1.js"></script> 216 <!-- <script src="xios_table_1775.js"></script> 217 <script src="xios_table_1774.js"></script> 218 <script src="xios_table_1773.js"></script> --> 163 219 164 220 165 <!-- <table id="xiostable">166 <thead></thead>167 <tfoot></tfoot>168 <tbody>169 <tr>170 <td>XIOS Unit tests</td>171 <td colspan="3"></td>172 <td class="testanswer">Failed</td>173 <td> </td>174 </tr>175 <tr>176 <td rowspan="6"></td>177 <td>Scalar algorithms</td>178 <td ></td>179 <td class="testanswer">Passed</td>180 <td> </td>181 <td> <form method="post" action=action1.php><input type="submit" value="Show param.def"/></form></td>182 </tr>183 <tr>184 <td rowspan="2"></td>185 <td>configuration 1</td>186 <td class="testanswer">Initialized</td>187 <td> </td>188 <td> <form method="post" action=action2.php><input type="submit" value="Show param.def"/></form></td>189 </tr>190 191 <tr>192 <td>configuration 2</td>193 <td class="testanswer">Passed</td>194 <td> </td>195 <td> <form method="post" action=action2.php><input type="submit" value="Show param.def"/></form></td>196 </tr>197 <tr>198 <td>Axis algorithms</td>199 <td></td>200 <td class="testanswer">Failed</td>201 <td> </td>202 <td> <form method="post" action=action1.php><input type="submit" value="Show param.def"/></form></td>203 </tr>204 <tr>205 <td rowspan="2"></td>206 <td>configuration 1</td>207 <td class="testanswer">Passed</td>208 <td> </td>209 <td> <form method="post" action=action2.php><input type="submit" value="Show param.def"/></form></td>210 </tr>211 <tr>212 <td>configuration 2</td>213 <td class="testanswer">Failed</td>214 <td> </td>215 <td> <form method="post" action=action2.php><input type="submit" value="Show param.def"/></form></td>216 </tr>217 </tbody>218 </table> -->219 220 <!-- <form method="post" action="traitement.php">221 <label for="pseudo">Votre pseudo : </label>222 <input type="text" name="pseudo" id="pseudo" placeholder="Ex: Zozor"/>223 <br/>224 <label for="pass">Votre mot de passe : </label>225 <input type="password" name="pass" id="pass"/>226 <br/>227 <label for="ameliorer">Votre commentaire :</br></label>228 <textarea name="ameliorer" id="ameliorer" rows="5">229 Améliorer ton site ?!230 Mais enfin ! Il est tellement génialissime qu'il n'est pasnécessaire de l'améliorer !231 </textarea>232 </br>233 <label for="number">Give a number : </label><input type="number" id="number" name="number" min="0" max="100" step="10"/>234 </br>235 <label for="email">Give an email : </label><input type="email" id="email" name="email"/>236 </br>237 <label for="url">Give an url : </label><input type="url" id="url" name="url"/>238 </br>239 <label for="range">Give another number : </label><input type="range" id="range" name="range" min="0" max="20" step="5"/>240 </br>241 <label for="color">Give a color : </label><input type="color" id="color" name="color"/>242 </br>243 <label for="date">Give a date : </label><input type="date" id="date" name="date"/>244 </br>245 <label for="time">Give a time : </label><input type="time" id="time" name="time"/>246 </br>247 <label for="week">Give a week : </label><input type="week" id="week" name="week"/>248 </br>249 <label for="month">Give a month : </label><input type="month" id="month" name="month"/>250 </br>251 <label for="datetime">Give a date and time : </label><input type="datetime" id="datetime" name="datetime"/>252 </br>253 <label for="datetime-local">Give a local date and time : </label><input type="datetime-local" id="datetime-local" name="datetime-local"/>254 </br>255 <label for="search">Give something to search : </label><input type="search" id="search" name="search"/>256 </form> -->257 258 <!-- <form method="post" action="action.php">259 <p> Cochez les aliments que vous aimez manger :260 <br/>261 <input type="checkbox" name="frites" id="frites"/><label for="frites">Frites</label>262 <br/>263 <input type="checkbox" name="steak" id="steak"/><label for="steak">Steak haché</label>264 <br/>265 <input type="checkbox" name="epinards" id="epinards"/><label for="epinards">Epinards</label>266 <br/>267 <input type="checkbox" name="huitres" id="huitres" checked/><label for="huitres">Huitres</label>268 </p>269 </form> -->270 271 <!-- <form method="post" action="action.php">272 <p> Veuillez indiquer la tranche d'âge dans laquelle vous vous situez :273 <br/>274 <input type="radio" name="age" value="moins15" id="moins15"/><label for="moins15">Moins de 15 ans</label>275 <br/>276 <input type="radio" name="age" value="medium15-25" id="medium15-25"/><label for="medium15-25">15-25 ans</label>277 <br/>278 <input type="radio" name="age" value="medium25-40" id="medium25-40"/><label for="medium25-40">25-40 ans</label>279 <br/>280 <input type="radio" name="age" value="plus40" id="plus40"/><label for="plus40">Encore plus vieux que ça ?!</label>281 </p>282 <p> Sur quel continent habitez-vous ?283 <br/>284 <input type="radio" name="continent" value="europe" id="europe"/><label for="europe">Europe</label>285 <br/>286 <input type="radio" name="continent" value="afrique" id="afrique"/><label for="afrique">Afrique</label>287 <br/>288 <input type="radio" name="continent" value="asie" id="asie"/><label for="asie">Asie</label>289 <br/>290 <input type="radio" name="continent" value="amerique" id="amerique"/><label for="amerique">Amérique</label>291 <br/>292 <input type="radio" name="continent" value="australie" id="australie"/><label for="australie">Australie</label>293 </p>294 </form> -->295 296 <!-- <form method="post" action="action.php">297 <p><label for="pays">Dans quel pays habitez-vous ?</label>298 <br/>299 <select name="pays" id="pays">300 <optgroup label="Europe">301 <option value="espagne">Espagne</option>302 <option value="france" selected>France</option>303 <option value="italie">Italie</option>304 <option value="royaume-uni">Royaume-Uni</option>305 </optgroup>306 <optgroup label="Amérique">307 <option value="canada">Canada</option>308 <option value="etats-unis">Ãtats-Unis</option>309 </optgroup>310 <optgroup label="Asie">311 <option value="chine">Chine</option>312 <option value="japon">Japon</option>313 </optgroup>314 </select>315 </p>316 </form> -->317 318 <!-- <form method="post" action="action.php">319 <fieldset>320 <legend>Vos coordonnées</legend>321 <label for="nom">Quel est votre nom ?</label><input type="text" name="nom" id="nom" autofocus/>322 <label for="prenom">Quel est votre prénom ?</label><input type="text" name="prenom" id="prenom"/>323 <label for="email">Quel est votre e-mail ?</label><input type="email" name="email" id="email" required/>324 </fieldset>325 <fieldset>326 <legend>Votre souhait</legend>327 <p> Faites un souhait que vous voudriez voir exaucé :328 <input type="radio" name="souhait" value="riche" id="riche"/><label for="riche">Etre riche</label>329 <input type="radio" name="souhait" value="celebre" id="celebre"/><label for="celebre">Etre célÚbre</label>330 <input type="radio" name="souhait" value="intelligent" id="intelligent"/><label for="intelligent">Etre <strong>encore</strong> plus intelligent</label>331 <input type="radio" name="souhait" value="autre" id="autre"/><label for="autre">Autre...</label>332 </p>333 <p><label for="precisions">Si "Autre", veuillez préciser:</label>334 <textarea name="precisions" id="precisions" cols="40" rows="4"></textarea>335 </p>336 </fieldset>337 <fieldset>338 <input type="submit" value="Envoyer"/>339 </fieldset>340 </form> -->341 342 <!-- <div id="txtcont"></div> -->343 221 344 222 … … 353 231 354 232 <script> 355 function show_param_test_axis_algo() 356 { 357 var myWindow = window.open("test_axis_algo/user_params.def", "", "width=400,height=400,left=1500,top=400"); 358 } 359 function show_param_test_domain_algo() 360 { 361 var myWindow = window.open("test_domain_algo/user_params.def", "", "width=400,height=400,left=1500,top=400"); 362 } 363 function show_param_test_grid_algo() 364 { 365 var myWindow = window.open("test_grid_algo/user_params.def", "", "width=400,height=400,left=1500,top=400"); 366 } 367 function show_param_test_scalar_algo() 368 { 369 var myWindow = window.open("test_scalar_algo/user_params.def", "", "width=400,height=400,left=1500,top=400"); 370 } 371 function show_param_test_function() 372 { 373 var myWindow = window.open("test_function/user_params.def", "", "width=400,height=400,left=1500,top=400"); 374 } 375 376 377 378 379 380 function show_param_test_axis_algo_config(config_name) 381 { 382 var myWindow = window.open("test_axis_algo/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 383 } 384 function show_param_test_domain_algo_config(config_name) 385 { 386 var myWindow = window.open("test_domain_algo/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 387 } 388 function show_param_test_grid_algo_config(config_name) 389 { 390 var myWindow = window.open("test_grid_algo/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 391 } 392 function show_param_test_scalar_algo_config(config_name) 393 { 394 var myWindow = window.open("test_scalar_algo/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 395 } 396 function show_param_test_function_config(config_name) 397 { 398 var myWindow = window.open("test_function/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 399 } 400 401 402 403 function show_user_param_test_axis_algo_config(config_name) 404 { 405 var myWindow = window.open("test_axis_algo/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 406 } 407 function show_user_param_test_domain_algo_config(config_name) 408 { 409 var myWindow = window.open("test_domain_algo/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 410 } 411 function show_user_param_test_grid_algo_config(config_name) 412 { 413 414 var myWindow = window.open("test_grid_algo/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 415 } 416 function show_user_param_test_scalar_algo_config(config_name) 417 { 418 var myWindow = window.open("test_scalar_algo/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 419 } 420 function show_user_param_test_function_config(config_name) 421 { 422 var myWindow = window.open("test_function/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 233 function show_param_test_axis_algo(my_revision) 234 { 235 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_axis_algo/user_params.def", "", "width=400,height=400,left=1500,top=400"); 236 } 237 function show_param_test_domain_algo(my_revision) 238 { 239 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_domain_algo/user_params.def", "", "width=400,height=400,left=1500,top=400"); 240 } 241 function show_param_test_grid_algo(my_revision) 242 { 243 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_grid_algo/user_params.def", "", "width=400,height=400,left=1500,top=400"); 244 } 245 function show_param_test_scalar_algo(my_revision) 246 { 247 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_scalar_algo/user_params.def", "", "width=400,height=400,left=1500,top=400"); 248 } 249 function show_param_test_function(my_revision) 250 { 251 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_function/user_params.def", "", "width=400,height=400,left=1500,top=400"); 252 } 253 254 255 256 257 258 function show_param_test_axis_algo_config(my_revision, config_name) 259 { 260 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_axis_algo/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 261 } 262 function show_param_test_domain_algo_config(my_revision, config_name) 263 { 264 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_domain_algo/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 265 } 266 function show_param_test_grid_algo_config(my_revision, config_name) 267 { 268 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_grid_algo/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 269 } 270 function show_param_test_scalar_algo_config(my_revision, config_name) 271 { 272 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_scalar_algo/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 273 } 274 function show_param_test_function_config(my_revision, config_name) 275 { 276 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_function/"+config_name+"/setup/all_param.def", "", "width=400,height=400,left=1500,top=400"); 277 } 278 279 280 281 function show_user_param_test_axis_algo_config(my_revision, config_name) 282 { 283 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_axis_algo/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 284 } 285 function show_user_param_test_domain_algo_config(my_revision, config_name) 286 { 287 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_domain_algo/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 288 } 289 function show_user_param_test_grid_algo_config(my_revision, config_name) 290 { 291 292 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_grid_algo/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 293 } 294 function show_user_param_test_scalar_algo_config(my_revision, config_name) 295 { 296 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_scalar_algo/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 297 } 298 function show_user_param_test_function_config(my_revision, config_name) 299 { 300 var myWindow = window.open("../"+my_revision+"/GENERIC_TESTCASE/test_function/"+config_name+"/setup/user_param.def", "", "width=400,height=400,left=1500,top=400"); 301 } 302 303 function show_xios_info(my_revision) 304 { 305 ans = document.getElementById('navborder_'+my_revision) 306 if(ans.classList.contains('hide')) 307 { 308 ans.classList.remove('hide') 309 ans.classList.add('show') 310 } 311 else if(ans.classList.contains('show')) 312 { 313 ans.classList.remove('show') 314 ans.classList.add('hide') 315 } 316 else 317 { 318 ans.classList.add('show') 319 } 320 } 321 322 function show_plein_report(my_revision) 323 { 324 var myWindow = window.open("plein_report_"+my_revision+".txt", "_blank"); 423 325 } 424 326 </script> 327 328 329 <script> 330 $("#revision").change(function() { 331 332 if(this.value == 0) 333 { 334 var ans = document.getElementsByClassName('class_xiostable') 335 for (var i = 0; i < ans.length; i++) 336 { 337 cell = ans[i] 338 cell.classList.remove('hide') 339 cell.classList.add('show') 340 } 341 342 // var ans = document.getElementsByClassName('class_navborder') 343 // for (var i = 0; i < ans.length; i++) 344 // { 345 // cell = ans[i] 346 // cell.classList.remove('show') 347 // cell.classList.add('hide') 348 // } 349 } 350 351 else 352 { 353 var ans = document.getElementsByClassName('class_xiostable') 354 for (var i = 0; i < ans.length; i++) 355 { 356 cell = ans[i] 357 cell.classList.remove('show') 358 cell.classList.add('hide') 359 } 360 361 // var ans = document.getElementsByClassName('class_navborder') 362 // for (var i = 0; i < ans.length; i++) 363 // { 364 // cell = ans[i] 365 // cell.classList.remove('show') 366 // cell.classList.add('hide') 367 // } 368 369 var ans = document.getElementById('xiostable_'+this.value) 370 ans.classList.remove('hide') 371 ans.classList.add('show') 372 373 // ans = document.getElementById('navborder_'+this.value) 374 // ans.classList.remove('hide') 375 // ans.classList.add('show') 376 } 377 }); 378 379 </script>
Note: See TracChangeset
for help on using the changeset viewer.