Changeset 714 for trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh
- Timestamp:
- 10/12/12 10:11:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh
r713 r714 2270 2270 echo "IGCM_sys_ncap2 :" $@ 2271 2271 fi 2272 ncap2 "$@" 2273 if [ $? -gt 0 ] ; then 2274 echo "IGCM_sys_ncap2 : erreur ${@}." 2275 IGCM_debug_Exit "ncap2" 2272 2273 typeset NB_ESSAI DELAI status i 2274 # number of tentative 2275 NB_ESSAI=3 2276 # time delay between tentative 2277 DELAI=2 2278 2279 i=0 2280 while [ $i -lt $NB_ESSAI ] ; do 2281 ncap2 "$@" > out_rsync 2>&1 2282 status=$? 2283 if [ ${status} -gt 0 ] ; then 2284 IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 2285 cat out_rsync 2286 \rm out_rsync 2287 IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2288 else 2289 \rm out_rsync 2290 break 2291 fi 2292 (( i = i + 1 )) 2293 done 2294 2295 if [ ${status} -gt 0 ] ; then 2296 echo "IGCM_sys_ncap2 : ncap2 error" 2297 IGCM_debug_Exit "ncap2" 2276 2298 fi 2277 2299 … … 2284 2306 echo "IGCM_sys_ncatted :" $@ 2285 2307 fi 2286 ncatted "$@" 2287 if [ $? -gt 0 ] ; then 2288 echo "IGCM_sys_ncatted : erreur ${@}." 2289 IGCM_debug_Exit "ncatted" 2308 2309 typeset NB_ESSAI DELAI status i 2310 # number of tentative 2311 NB_ESSAI=3 2312 # time delay between tentative 2313 DELAI=2 2314 2315 i=0 2316 while [ $i -lt $NB_ESSAI ] ; do 2317 ncatted "$@" > out_rsync 2>&1 2318 status=$? 2319 if [ ${status} -gt 0 ] ; then 2320 IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 2321 cat out_rsync 2322 \rm out_rsync 2323 IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2324 else 2325 \rm out_rsync 2326 break 2327 fi 2328 (( i = i + 1 )) 2329 done 2330 2331 if [ ${status} -gt 0 ] ; then 2332 echo "IGCM_sys_ncatted : ncatted error" 2333 IGCM_debug_Exit "ncatted" 2290 2334 fi 2291 2335 … … 2298 2342 echo "IGCM_sys_ncbo :" $@ 2299 2343 fi 2300 ncbo $@ 2301 if [ $? -gt 0 ] ; then 2302 echo "IGCM_sys_ncbo : erreur ${@}." 2303 IGCM_debug_Exit "ncbo" 2344 2345 typeset NB_ESSAI DELAI status i 2346 # number of tentative 2347 NB_ESSAI=3 2348 # time delay between tentative 2349 DELAI=2 2350 2351 i=0 2352 while [ $i -lt $NB_ESSAI ] ; do 2353 ncbo $@ > out_rsync 2>&1 2354 status=$? 2355 if [ ${status} -gt 0 ] ; then 2356 IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 2357 cat out_rsync 2358 \rm out_rsync 2359 IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2360 else 2361 \rm out_rsync 2362 break 2363 fi 2364 (( i = i + 1 )) 2365 done 2366 2367 if [ ${status} -gt 0 ] ; then 2368 echo "IGCM_sys_ncbo : ncbo error" 2369 IGCM_debug_Exit "ncbo" 2304 2370 fi 2305 2371 … … 2312 2378 echo "IGCM_sys_ncdiff :" $@ 2313 2379 fi 2314 ncdiff $@ 2315 if [ $? -gt 0 ] ; then 2316 echo "IGCM_sys_ncdiff : erreur ${@}." 2317 IGCM_debug_Exit "ncdiff" 2380 2381 typeset NB_ESSAI DELAI status i 2382 # number of tentative 2383 NB_ESSAI=3 2384 # time delay between tentative 2385 DELAI=2 2386 2387 i=0 2388 while [ $i -lt $NB_ESSAI ] ; do 2389 ncdiff $@ > out_rsync 2>&1 2390 status=$? 2391 if [ ${status} -gt 0 ] ; then 2392 IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 2393 cat out_rsync 2394 \rm out_rsync 2395 IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2396 else 2397 \rm out_rsync 2398 break 2399 fi 2400 (( i = i + 1 )) 2401 done 2402 2403 if [ ${status} -gt 0 ] ; then 2404 echo "IGCM_sys_ncdiff : ncdiff error" 2405 IGCM_debug_Exit "ncdiff" 2318 2406 fi 2319 2407 … … 2326 2414 echo "IGCM_sys_ncea :" $@ 2327 2415 fi 2328 ncea $@ 2329 if [ $? -gt 0 ] ; then 2330 echo "IGCM_sys_ncea : erreur ${@}." 2331 IGCM_debug_Exit "ncea" 2416 2417 typeset NB_ESSAI DELAI status i 2418 # number of tentative 2419 NB_ESSAI=3 2420 # time delay between tentative 2421 DELAI=2 2422 2423 i=0 2424 while [ $i -lt $NB_ESSAI ] ; do 2425 ncea $@ > out_rsync 2>&1 2426 status=$? 2427 if [ ${status} -gt 0 ] ; then 2428 IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 2429 cat out_rsync 2430 \rm out_rsync 2431 IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2432 else 2433 \rm out_rsync 2434 break 2435 fi 2436 (( i = i + 1 )) 2437 done 2438 2439 if [ ${status} -gt 0 ] ; then 2440 echo "IGCM_sys_ncea : ncea error" 2441 IGCM_debug_Exit "ncea" 2332 2442 fi 2333 2443 … … 2340 2450 echo "IGCM_sys_ncecat :" $@ 2341 2451 fi 2342 ncecat $@ 2343 if [ $? -gt 0 ] ; then 2344 echo "IGCM_sys_ncecat : erreur ${@}." 2345 IGCM_debug_Exit "ncecat" 2452 2453 typeset NB_ESSAI DELAI status i 2454 # number of tentative 2455 NB_ESSAI=3 2456 # time delay between tentative 2457 DELAI=2 2458 2459 i=0 2460 while [ $i -lt $NB_ESSAI ] ; do 2461 ncecat $@ > out_rsync 2>&1 2462 status=$? 2463 if [ ${status} -gt 0 ] ; then 2464 IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 2465 cat out_rsync 2466 \rm out_rsync 2467 IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2468 else 2469 \rm out_rsync 2470 break 2471 fi 2472 (( i = i + 1 )) 2473 done 2474 2475 if [ ${status} -gt 0 ] ; then 2476 echo "IGCM_sys_ncecat : ncecat error" 2477 IGCM_debug_Exit "ncecat" 2346 2478 fi 2347 2479 … … 2354 2486 echo "IGCM_sys_ncflint :" $@ 2355 2487 fi 2356 ncflint $@ 2357 if [ $? -gt 0 ] ; then 2358 echo "IGCM_sys_ncflint : erreur ${@}." 2359 IGCM_debug_Exit "ncflint" 2488 2489 typeset NB_ESSAI DELAI status i 2490 # number of tentative 2491 NB_ESSAI=3 2492 # time delay between tentative 2493 DELAI=2 2494 2495 i=0 2496 while [ $i -lt $NB_ESSAI ] ; do 2497 ncflint $@ > out_rsync 2>&1 2498 status=$? 2499 if [ ${status} -gt 0 ] ; then 2500 IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 2501 cat out_rsync 2502 \rm out_rsync 2503 IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2504 else 2505 \rm out_rsync 2506 break 2507 fi 2508 (( i = i + 1 )) 2509 done 2510 2511 if [ ${status} -gt 0 ] ; then 2512 echo "IGCM_sys_ncflint : ncflint error" 2513 IGCM_debug_Exit "ncflint" 2360 2514 fi 2361 2515 … … 2368 2522 echo "IGCM_sys_ncks :" $@ 2369 2523 fi 2370 ncks $@ 2371 if [ $? -gt 0 ] ; then 2372 echo "IGCM_sys_ncks : erreur ${@}." 2373 IGCM_debug_Exit "ncks" 2524 2525 typeset NB_ESSAI DELAI status i 2526 # number of tentative 2527 NB_ESSAI=3 2528 # time delay between tentative 2529 DELAI=2 2530 2531 i=0 2532 while [ $i -lt $NB_ESSAI ] ; do 2533 ncks $@ > out_rsync 2>&1 2534 status=$? 2535 if [ ${status} -gt 0 ] ; then 2536 IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 2537 cat out_rsync 2538 \rm out_rsync 2539 IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2540 else 2541 \rm out_rsync 2542 break 2543 fi 2544 (( i = i + 1 )) 2545 done 2546 2547 if [ ${status} -gt 0 ] ; then 2548 echo "IGCM_sys_ncks : ncks error" 2549 IGCM_debug_Exit "ncks" 2374 2550 fi 2375 2551 … … 2382 2558 echo "IGCM_sys_ncpdq :" $@ 2383 2559 fi 2384 ncpdq $@ 2385 if [ $? -gt 0 ] ; then 2386 echo "IGCM_sys_ncpdq : erreur ${@}." 2387 IGCM_debug_Exit "ncpdq" 2560 2561 typeset NB_ESSAI DELAI status i 2562 # number of tentative 2563 NB_ESSAI=3 2564 # time delay between tentative 2565 DELAI=2 2566 2567 i=0 2568 while [ $i -lt $NB_ESSAI ] ; do 2569 ncpdq $@ > out_rsync 2>&1 2570 status=$? 2571 if [ ${status} -gt 0 ] ; then 2572 IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 2573 cat out_rsync 2574 \rm out_rsync 2575 IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2576 else 2577 \rm out_rsync 2578 break 2579 fi 2580 (( i = i + 1 )) 2581 done 2582 2583 if [ ${status} -gt 0 ] ; then 2584 echo "IGCM_sys_ncpdq : ncpdq error" 2585 IGCM_debug_Exit "ncpdq" 2388 2586 fi 2389 2587 … … 2396 2594 echo "IGCM_sys_ncra :" $@ 2397 2595 fi 2398 ncra $@ 2399 if [ $? -gt 0 ] ; then 2400 echo "IGCM_sys_ncra : erreur ${@}." 2401 IGCM_debug_Exit "ncra" 2596 2597 typeset NB_ESSAI DELAI status i 2598 # number of tentative 2599 NB_ESSAI=3 2600 # time delay between tentative 2601 DELAI=2 2602 2603 i=0 2604 while [ $i -lt $NB_ESSAI ] ; do 2605 ncra $@ > out_rsync 2>&1 2606 status=$? 2607 if [ ${status} -gt 0 ] ; then 2608 IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 2609 cat out_rsync 2610 \rm out_rsync 2611 IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2612 else 2613 \rm out_rsync 2614 break 2615 fi 2616 (( i = i + 1 )) 2617 done 2618 2619 if [ ${status} -gt 0 ] ; then 2620 echo "IGCM_sys_ncra : ncra error" 2621 IGCM_debug_Exit "ncra" 2402 2622 fi 2403 2623 … … 2410 2630 echo "IGCM_sys_ncrcat :" $@ 2411 2631 fi 2412 ncrcat --omp_num_threads 2 $@ 2413 if [ $? -gt 0 ] ; then 2414 echo "IGCM_sys_ncrcat : erreur ${@}." 2415 # IGCM_debug_Exit "ncrcat" 2632 2633 typeset NB_ESSAI DELAI status i 2634 # number of tentative 2635 NB_ESSAI=3 2636 # time delay between tentative 2637 DELAI=2 2638 2639 i=0 2640 while [ $i -lt $NB_ESSAI ] ; do 2641 ncrcat $@ > out_rsync 2>&1 2642 status=$? 2643 if [ ${status} -gt 0 ] ; then 2644 IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 2645 cat out_rsync 2646 \rm out_rsync 2647 IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2648 else 2649 \rm out_rsync 2650 break 2651 fi 2652 (( i = i + 1 )) 2653 done 2654 2655 if [ ${status} -gt 0 ] ; then 2656 echo "IGCM_sys_ncrcat : ncrcat error" 2657 #IGCM_debug_Exit "ncrcat" 2416 2658 fi 2417 2659 … … 2424 2666 echo "IGCM_sys_ncrename :" $@ 2425 2667 fi 2426 ncrename $@ 2427 if [ $? -gt 0 ] ; then 2428 echo "IGCM_sys_ncrename : erreur ${@}." 2429 IGCM_debug_Exit "ncrename" 2668 2669 typeset NB_ESSAI DELAI status i 2670 # number of tentative 2671 NB_ESSAI=3 2672 # time delay between tentative 2673 DELAI=2 2674 2675 i=0 2676 while [ $i -lt $NB_ESSAI ] ; do 2677 ncrename $@ > out_rsync 2>&1 2678 status=$? 2679 if [ ${status} -gt 0 ] ; then 2680 IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 2681 cat out_rsync 2682 \rm out_rsync 2683 IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2684 else 2685 \rm out_rsync 2686 break 2687 fi 2688 (( i = i + 1 )) 2689 done 2690 2691 if [ ${status} -gt 0 ] ; then 2692 echo "IGCM_sys_ncrename : ncrename error" 2693 IGCM_debug_Exit "ncrename" 2430 2694 fi 2431 2695 … … 2438 2702 echo "IGCM_sys_ncwa :" $@ 2439 2703 fi 2440 ncwa $@ 2441 if [ $? -gt 0 ] ; then 2442 echo "IGCM_sys_ncwa : erreur ${@}." 2443 IGCM_debug_Exit "ncwa" 2704 2705 typeset NB_ESSAI DELAI status i 2706 # number of tentative 2707 NB_ESSAI=3 2708 # time delay between tentative 2709 DELAI=2 2710 2711 i=0 2712 while [ $i -lt $NB_ESSAI ] ; do 2713 ncwa $@ > out_rsync 2>&1 2714 status=$? 2715 if [ ${status} -gt 0 ] ; then 2716 IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 2717 cat out_rsync 2718 \rm out_rsync 2719 IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2720 else 2721 \rm out_rsync 2722 break 2723 fi 2724 (( i = i + 1 )) 2725 done 2726 2727 if [ ${status} -gt 0 ] ; then 2728 echo "IGCM_sys_ncwa : ncwa error" 2729 IGCM_debug_Exit "ncwa" 2444 2730 fi 2445 2731 … … 2455 2741 echo "IGCM_sys_cdo :" $@ 2456 2742 fi 2457 \cdo $@ 2458 if [ $? -gt 0 ] ; then 2459 echo "IGCM_sys_cdo : erreur ${@}." 2743 2744 typeset status 2745 2746 \cdo $@ > out_rsync 2>&1 2747 status=$? 2748 if [ ${status} -gt 0 ] ; then 2749 echo "IGCM_sys_cdo : error code ${status}" 2750 cat out_rsync 2751 \rm out_rsync 2460 2752 IGCM_debug_PopStack "IGCM_sys_cdo" 2461 2753 return 1
Note: See TracChangeset
for help on using the changeset viewer.