Subversion Repositories slepc-dev

Rev

Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1377 slepc 1
#
2
#  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1672 slepc 3
#  SLEPc - Scalable Library for Eigenvalue Problem Computations
2575 eromero 4
#  Copyright (c) 2002-2011, Universitat Politecnica de Valencia, Spain
1377 slepc 5
#
1672 slepc 6
#  This file is part of SLEPc.
7
#    
8
#  SLEPc is free software: you can redistribute it and/or modify it under  the
9
#  terms of version 3 of the GNU Lesser General Public License as published by
10
#  the Free Software Foundation.
11
#
12
#  SLEPc  is  distributed in the hope that it will be useful, but WITHOUT  ANY
13
#  WARRANTY;  without even the implied warranty of MERCHANTABILITY or  FITNESS
14
#  FOR  A  PARTICULAR PURPOSE. See the GNU Lesser General Public  License  for
15
#  more details.
16
#
17
#  You  should have received a copy of the GNU Lesser General  Public  License
18
#  along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
1377 slepc 19
#  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
20
#
21
 
963 dsic.upv.es!antodo 22
import sys
924 dsic.upv.es!antodo 23
 
1105 slepc 24
import petscconf
25
 
924 dsic.upv.es!antodo 26
def Open(filename):
27
  global f
28
  f = open(filename,'w')
29
  return
30
 
31
def Println(string):
32
  print string
33
  f.write(string)
34
  f.write('\n')
35
 
36
def Print(string):
37
  print string,
38
  f.write(string+' ')
39
 
2257 jroman 40
def write(string):
924 dsic.upv.es!antodo 41
  f.write(string)
42
  f.write('\n')
43
 
44
def Exit(string):
1092 slepc 45
  f.write(string)
46
  f.write('\n')
924 dsic.upv.es!antodo 47
  f.close()
1105 slepc 48
  print string
1523 slepc 49
  sys.exit('ERROR: See "' + petscconf.ARCH + '/conf/configure.log" file for details')
924 dsic.upv.es!antodo 50