Changeset 12766
- Timestamp:
 - 07/26/12 16:12:05 (13 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  issm/trunk-jpl/src/m/model/petscversion.py (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/m/model/petscversion.py
r12762 r12766 15 15 PETSC_VERSION=3 16 16 17 configfile=os.path.join t(issmdir(),'/config.h')17 configfile=os.path.join(issmdir(),'config.h') 18 18 if not os.path.exists(configfile): 19 19 raise RuntimeError("File '%s' not found. ISSM has not been configured yet!" % configfile) 20 20 21 %go through the file, and recover the line we want21 #go through the file, and recover the line we want 22 22 try: 23 23 fid=open(configfile,'r') … … 32 32 fid.close() 33 33 34 return PETSC_VERSION 35  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)