Commits

Matt Knepley  committed ea8547f

Builder: Separate logs for different functions

  • Participants
  • Parent commits 090656d

Comments (0)

Files changed (2)

File config/builder.py

      raise RuntimeError('You must provide a valid PETSC_ARCH')
    return arch
 
- def __init__(self):
+ def __init__(self, logname = 'make.log'):
    import RDict
    import os
 
    argDB.saveFilename = os.path.join(self.petscDir, arch, 'conf', 'RDict.db')
    argDB.load()
    script.Script.__init__(self, argDB = argDB)
-   self.logName = 'make.log'
+   self.logName = logname
    #self.log = sys.stdout
    return
 

File config/builder2.py

 def buildExample(args):
   '''Build and link an example'''
   ret   = 0
-  maker = builder.PETScMaker()
+  maker = builder.PETScMaker('example.log')
   maker.setup()
   examples = []
   for f in args.files:
   '''Check that build is functional'''
   ret       = 0
   extraArgs = ' '+' '.join(args.args)
-  maker     = builder.PETScMaker()
+  maker     = builder.PETScMaker('example.log')
   maker.setup()
   # C test
   if len(args.files):
   '''Run complete regression suite'''
   ret   = 0
   gret  = 0
-  maker = builder.PETScMaker()
+  maker = builder.PETScMaker('regression.log')
   maker.setup()
   haltOnError = False