Ignore:
Timestamp:
10/28/08 18:42:58 (16 years ago)
Author:
sdipsl
Message:

PB + MM : - great optimisation for libIGCM_date

  • add IGCM_card_WriteArrayOption. Write an array option for a given file.card and section
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_card/IGCM_card_WriteOption.awk

    r5 r23  
    102102END { 
    103103 
    104 if (! exit_value ) { 
     104    if (! exit_value ) { 
    105105 
    106 myprint("###############################") 
    107 myprint("section      ====> " section) 
    108 myprint("option       ====> " option) 
    109 myprint("value        ====> " value) 
     106        myprint("###############################") 
     107        myprint("section      ====> " section) 
     108        myprint("option       ====> " option) 
     109        myprint("value        ====> " value) 
     110         
     111        if (section_found == 0) { 
     112            print "Error: Section not found", section, option 
     113        } else if (option_found == 0) { 
     114            print "Error: Option not found", section, option 
     115        }        
     116         
     117    } else { 
    110118 
    111 if (section_found == 0) { 
    112         print "Error: Section not found" 
    113 } else if (option_found == 0) { 
    114         print "Error: Option not found" 
    115 }        
     119        print "Error in with IGCM_WriteOption : ", section, option 
    116120 
    117 } 
     121    } 
    118122 
    119123} 
Note: See TracChangeset for help on using the changeset viewer.