Subversion Repositories slepc-dev

Rev

Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2257 Rev 2575
#
#
#  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#  SLEPc - Scalable Library for Eigenvalue Problem Computations
#  SLEPc - Scalable Library for Eigenvalue Problem Computations
#  Copyright (c) 2002-2010, Universidad Politecnica de Valencia, Spain
#  Copyright (c) 2002-2011, Universitat Politecnica de Valencia, Spain
#
#
#  This file is part of SLEPc.
#  This file is part of SLEPc.
#    
#    
#  SLEPc is free software: you can redistribute it and/or modify it under  the
#  SLEPc is free software: you can redistribute it and/or modify it under  the
#  terms of version 3 of the GNU Lesser General Public License as published by
#  terms of version 3 of the GNU Lesser General Public License as published by
#  the Free Software Foundation.
#  the Free Software Foundation.
#
#
#  SLEPc  is  distributed in the hope that it will be useful, but WITHOUT  ANY
#  SLEPc  is  distributed in the hope that it will be useful, but WITHOUT  ANY
#  WARRANTY;  without even the implied warranty of MERCHANTABILITY or  FITNESS
#  WARRANTY;  without even the implied warranty of MERCHANTABILITY or  FITNESS
#  FOR  A  PARTICULAR PURPOSE. See the GNU Lesser General Public  License  for
#  FOR  A  PARTICULAR PURPOSE. See the GNU Lesser General Public  License  for
#  more details.
#  more details.
#
#
#  You  should have received a copy of the GNU Lesser General  Public  License
#  You  should have received a copy of the GNU Lesser General  Public  License
#  along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
#  along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
#  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
#
 
 
import sys
import sys
 
 
import petscconf
import petscconf
 
 
def Open(filename):
def Open(filename):
  global f
  global f
  f = open(filename,'w')
  f = open(filename,'w')
  return
  return
 
 
def Println(string):
def Println(string):
  print string
  print string
  f.write(string)
  f.write(string)
  f.write('\n')
  f.write('\n')
 
 
def Print(string):
def Print(string):
  print string,
  print string,
  f.write(string+' ')
  f.write(string+' ')
 
 
def write(string):
def write(string):
  f.write(string)
  f.write(string)
  f.write('\n')
  f.write('\n')
 
 
def Exit(string):
def Exit(string):
  f.write(string)
  f.write(string)
  f.write('\n')
  f.write('\n')
  f.close()
  f.close()
  print string
  print string
  sys.exit('ERROR: See "' + petscconf.ARCH + '/conf/configure.log" file for details')
  sys.exit('ERROR: See "' + petscconf.ARCH + '/conf/configure.log" file for details')