Ignore:
Timestamp:
03/21/12 17:48:52 (12 years ago)
Author:
sdipsl
Message:
  • adapt TSC and create_ts to work with packed files
  • adapt dods related functions to work with work/store
  • bugfixes
  • replace tabulation by 2 space in TSC (svn diff -x -w)
    • sorry for the inconvenience but it will really help on the long run.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh

    r587 r591  
    13281328  RET=0 
    13291329  if [ $DRYRUN = 0 ]; then 
    1330     if [ ! -d /dmnfs/cont003/dods/public/${LOGIN}/${R_DODS}/${1} ] ; then 
    1331       echo "WARNING : IGCM_sys_Dods_Rm /dmnfs/cont003/dods/public/${LOGIN}/${R_DODS}/${1} DOES NOT EXIST ." 
    1332       echo "Nothing has been done." 
    1333       return 
    1334     fi 
    1335     dods_rm public/${LOGIN}/${R_DODS}/${1} # > out_dods_rm 2>&1 
     1330 
     1331#    if [ ! -d /dmnfs/cont003/dods/public/${LOGIN}/${R_DODS}/${1} ] ; then 
     1332#      echo "WARNING : IGCM_sys_Dods_Rm /dmnfs/cont003/dods/public/${LOGIN}/${R_DODS}/${1} DOES NOT EXIST ." 
     1333#      echo "Nothing has been done." 
     1334#      return 
     1335#    fi 
     1336 
     1337    /ccc/cont003/home/dsm/p86maf/bin/dods_rm public/${LOGIN}/${R_DODS}/${1} # > out_dods_rm 2>&1 
    13361338    RET=$? 
    13371339     
     
    13611363  typeset RET 
    13621364  RET=0 
    1363   if [ $DRYRUN = 0 ]; then 
    1364     if [ ! -d ${R_SAVE}/${1} ] ; then 
    1365       echo "WARNING : IGCM_sys_Dods_Cp ${R_SAVE}/${1} DOES NOT EXIST ." 
    1366       echo "Nothing has been done." 
    1367       return 
    1368     fi 
    1369     # 
    1370     dods_cp ${1} public/${LOGIN}/${R_DODS} # > out_dods_cp 2>&1 
     1365 
     1366#  if [ $DRYRUN = 0 ]; then 
     1367#    if [ ! -d ${R_SAVE}/${1} ] ; then 
     1368#      echo "WARNING : IGCM_sys_Dods_Cp ${R_SAVE}/${1} DOES NOT EXIST ." 
     1369#      echo "Nothing has been done." 
     1370#      return 
     1371#    fi 
     1372 
     1373    /ccc/cont003/home/dsm/p86maf/bin/dods_cp ${1} public/${LOGIN}/${R_DODS} # > out_dods_cp 2>&1 
    13711374    RET=$? 
    13721375 
     
    13951398    echo "IGCM_sys_Put_Dods :" $@ 
    13961399  fi 
     1400  typeset RET 
    13971401  if [ $DRYRUN = 0 ]; then 
    1398     if [ ! -d ${R_SAVE}/${1} ] ; then 
    1399       echo "WARNING : IGCM_sys_Put_Dods ${R_SAVE}/${1} DOES NOT EXIST ." 
     1402 
     1403    if ( [ ! -d ${R_SAVE}/${1} ] && [ ! -d ${R_FIGR}/${1} ] ) ; then 
     1404      echo "WARNING IGCM_sys_Put_Dods : None of the following directories exist. Exactly one should." 
     1405      echo "WARNING IGCM_sys_Put_Dods : ${R_SAVE}/${1} DOES NOT EXIST." 
     1406      echo "WARNING IGCM_sys_Put_Dods : ${R_FIGR}/${1} DOES NOT EXIST." 
    14001407      IGCM_debug_PopStack "IGCM_sys_Put_Dods" 
    14011408      return 
    14021409    fi 
    14031410 
    1404     typeset RET 
    1405         # 
    1406     cd ${R_SAVE} 
     1411    if ( [ -d ${R_SAVE}/${1} ] && [ -d ${R_FIGR}/${1} ] ) ; then 
     1412      echo "WARNING IGCM_sys_Put_Dods : Both of the following directories exist. Exactly one should." 
     1413      echo "WARNING IGCM_sys_Put_Dods : ${R_SAVE}/${1} EXISTS." 
     1414      echo "WARNING IGCM_sys_Put_Dods : ${R_FIGR}/${1} EXISTS." 
     1415      IGCM_debug_PopStack "IGCM_sys_Put_Dods" 
     1416      return 
     1417    fi 
     1418    # 
     1419    if [ -d ${R_SAVE}/${1} ] ; then 
     1420      cd ${R_SAVE} 
     1421    elif [ -d ${R_FIGR}/${1} ] ; then 
     1422      cd ${R_FIGR} 
     1423    fi 
     1424 
    14071425    IGCM_sys_Dods_Rm ${1} 
    14081426    IGCM_sys_Dods_Cp ${1} 
Note: See TracChangeset for help on using the changeset viewer.