Changeset 1255


Ignore:
Timestamp:
10/16/15 22:56:40 (9 years ago)
Author:
sdipsl
Message:
  • fix an awful syntax error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1253 r1255  
    694694 
    695695  # Define the execution type we are running in 
    696   if [ ${OK_PARA_MPMD} ] ; then 
    697     if [ ${OK_PARA_MPI} ] ; then 
     696  if ( ${OK_PARA_MPMD} ) ; then 
     697    if ( ${OK_PARA_MPI} ) ; then 
    698698      # MPMD always implies MPI 
    699699      executionType=1 
    700700    fi 
    701     if [ ${OK_PARA_OMP} ] ; then 
     701    if ( ${OK_PARA_OMP} ) ; then 
    702702      # MPMD + MPI/OMP 
    703703      executionType=2 
    704704    fi 
    705705  else 
    706     if ( [ ${OK_PARA_MPI} ] && [ ${OK_PARA_OMP} ] ) ; then 
     706    if ( ( ${OK_PARA_MPI} ) && ( ${OK_PARA_OMP} ) ) ; then 
    707707      # SPMD + MPI/OMP 
    708708      executionType=3 
    709     elif ( [ ${OK_PARA_MPI} ] && [ ! ${OK_PARA_OMP} ] ) ; then 
     709    elif ( ( ${OK_PARA_MPI} ) && ( ! ${OK_PARA_OMP} ) ) ; then 
    710710      # SPMD + MPI only 
    711711      executionType=4 
    712     elif ( [ ! ${OK_PARA_MPI} ] && [ ${OK_PARA_OMP} ] ) ; then 
     712    elif ( ( ! ${OK_PARA_MPI} ) && ( ${OK_PARA_OMP} ) ) ; then 
    713713      # SPMD + OMP only 
    714714      executionType=5 
    715     elif ( [ ! ${OK_PARA_MPI} ] && [ ! ${OK_PARA_OMP} ] ) ; then 
     715    elif ( ( ! ${OK_PARA_MPI} ) && ( ! ${OK_PARA_OMP} ) ) ; then 
    716716      # SEQUENTIAL THEN 
    717717      executionType=6 
Note: See TracChangeset for help on using the changeset viewer.