
config/report_tests.py,142
def inInstallDir():inInstallDir11,205
def summarize_results(directory,make,ntime,etime):summarize_results30,837
def main():main108,3400

config/configure.py,3570
def AddDefine(conffile,name,value,prefix='SLEPC_'):AddDefine15,489
def CreateFile(basedir,fname,log):CreateFile18,635
def CreateDir(basedir,dirname,log):CreateDir27,900
def CreateDirTwo(basedir,dir1,dir2,log):CreateDirTwo37,1207
def CreateDirTest(basedir,dirname,log):CreateDirTest53,1719
def WriteModulesFile(modules,version,sdir):WriteModulesFile66,2106
def WritePkgconfigFile(pkgconfig,version,pversion,sdir,isinstall,prefixdir,singlelib):WritePkgconfigFile78,2756
def WriteCMakeConfigFile(cmakeconf):WriteCMakeConfigFile97,3648
def WriteReconfigScript(reconfig,slepcdir,usedargs):WriteReconfigScript113,4376
configdir = os.path.abspath('config')configdir134,5672
argdb = argdb.ArgDB(sys.argv)argdb142,5948
log   = log.Log()log143,5978
slepc   = slepc.SLEPc(argdb,log)slepc147,6149
petsc   = petsc.PETSc(argdb,log)petsc148,6182
arpack  = arpack.Arpack(argdb,log)arpack149,6215
blopex  = blopex.Blopex(argdb,log)blopex150,6250
blzpack = blzpack.Blzpack(argdb,log)blzpack151,6285
feast   = feast.Feast(argdb,log)feast152,6322
primme  = primme.Primme(argdb,log)primme153,6355
trlan   = trlan.Trlan(argdb,log)trlan154,6390
sowing  = sowing.Sowing(argdb,log)sowing155,6423
lapack  = lapack.Lapack(argdb,log)lapack156,6458
slicot  = slicot.Slicot(argdb,log)slicot157,6493
externalpackages = [arpack, blopex, blzpack, feast, primme, slicot, trlan]externalpackages159,6529
optionspackages  = [slepc, arpack, blopex, blzpack, feast, primme, slicot, trlan, sowing]optionspackages160,6604
checkpackages    = [arpack, blopex, blzpack, feast, primme, slicot, trlan, lapack]checkpackages161,6694
emptyarch = not ('PETSC_ARCH' in os.environ and os.environ['PETSC_ARCH'])emptyarch187,7543
  archname = petsc.archarchname198,7908
libdir  = CreateDir(archdir,'lib',log)libdir202,8042
confdir = CreateDirTwo(libdir,'slepc','conf',log)confdir203,8081
      f = open(os.path.join(confdir,'slepcvariables'),'r')f227,8926
      searchlines = f.readlines()searchlines228,8985
includedir = CreateDir(archdir,'include',log)includedir251,9904
modulesdir = CreateDirTwo(confdir,'modules','slepc',log)modulesdir252,9950
pkgconfdir = CreateDir(libdir,'pkgconfig',log)pkgconfdir253,10007
slepcvars  = CreateFile(confdir,'slepcvariables',log)slepcvars254,10054
slepcrules = CreateFile(confdir,'slepcrules',log)slepcrules255,10108
slepcconf  = CreateFile(includedir,'slepcconf.h',log)slepcconf256,10158
cmakeconf  = CreateFile(confdir,'SLEPcBuildInternal.cmake',log)cmakeconf257,10212
pkgconfig  = CreateFile(pkgconfdir,'SLEPc.pc',log)pkgconfig258,10276
  modules  = CreateFile(modulesdir,slepc.lversion,log)modules260,10347
  modules  = CreateFile(modulesdir,slepc.lversion+'-'+archname,log)modules262,10408
  reconfig = CreateFile(confdir,'reconfigure-'+archname+'.py',log)reconfig263,10476
  reconfigpath = os.path.join(confdir,'reconfigure-'+archname+'.py')reconfigpath264,10543
  globconf = CreateFile(os.path.join(slepc.dir,'lib','slepc','conf'),'slepcvariables',log)globconf288,11505
slflag = ''slflag328,13525
bfort = petsc.bfortbfort352,14309
  bfort = sowing.Install(archdir,petsc.make)bfort354,14356
      bfort = os.path.join(archdir,'bin','bfort')bfort359,14478
      bfort = sowing.Install(archdir,petsc.make)bfort361,14562
cmakeok = Falsecmakeok375,15116
      cmakeok = cmakeboot.main(slepc.dir,petsc.dir,log=log)cmakeok392,15735
      petscdate = dateutil.parser.parse(petsc.gitdate)petscdate429,17156
      slepcdate = dateutil.parser.parse(slepc.gitdate)slepcdate430,17211

config/testparse.py,1501
thisscriptdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))thisscriptdir45,1218
maintdir=os.path.join(os.path.join(os.path.dirname(thisscriptdir),'bin'),'maint')maintdir46,1308
buildkeys="requires TODO SKIP depends".split()buildkeys50,1461
acceptedkeys="test nsize requires command suffix args filter filter_output localrunfiles comments TODO SKIP output_file timeoutfactor".split()acceptedkeys52,1509
appendlist="args requires comments".split()appendlist53,1652
def _stripIndent(block,srcfile,entireBlock=False,fileNums=[]):_stripIndent57,1708
def parseLoopArgs(varset):parseLoopArgs123,4171
def _getSeparateTestvars(testDict):_getSeparateTestvars135,4578
def _getNewArgs(args):_getNewArgs160,5275
def _getVarVals(findvar,testDict):_getVarVals176,5727
def genTestsSeparateTestvars(intests,indicts):genTestsSeparateTestvars199,6484
def genTestsSubtestSuffix(testnames,sdicts):genTestsSubtestSuffix246,8127
def splitTests(testname,sdict):splitTests297,9816
def parseTest(testStr,srcfile,verbosity):parseTest313,10384
def parseTests(testStr,srcfile,fileNums,verbosity):parseTests379,12652
def parseTestFile(srcfile,verbosity):parseTestFile432,14829
def parseTestDir(directory,verbosity):parseTestDir470,15943
def printExParseDict(rDict):printExParseDict486,16347
def main(directory='',test_file='',verbosity=0):main511,17115
    parser = optparse.OptionParser()parser523,17390
      verbosity=int(opts.verbosity)verbosity543,18210

config/cmakeboot.py,647
def noCheck(command, status, output, error):noCheck21,784
def quoteIfNeeded(path):quoteIfNeeded24,839
class StdoutLogger(object):StdoutLogger32,1102
  def write(self,str):write33,1130
class PETScMaker(script.Script):PETScMaker36,1169
 def __init__(self, slepcdir, petscdir, petscarch, argDB = None, framework = None):__init__37,1202
 def __str__(self):__str__48,1596
 def setupModules(self):setupModules51,1630
 def setup(self):setup70,2991
 def cmakeboot(self, args, log):cmakeboot76,3131
def main(slepcdir, petscdir, petscarch=os.environ['PETSC_ARCH'], argDB=None, framework=None, log=StdoutLogger(), args=[]):main177,8250

config/install.py,1555
  WindowsError = NoneWindowsError8,132
class Installer:Installer10,155
  def __init__(self, args = None):__init__11,172
  def readInstallDir(self, src):readInstallDir36,1282
  def setupDirectories(self):setupDirectories52,1794
  def checkDestdir(self):checkDestdir72,3103
  def copyfile(self, src, dst, symlinks = False, copyFunc = shutil.copy2):copyfile96,4553
  def copyexamplefiles(self, src, dst, copyFunc = shutil.copy2):copyexamplefiles121,5378
  def fixExamplesMakefile(self, src):fixExamplesMakefile130,5718
  def copyExamples(self, src, dst):copyExamples144,6229
  def copyConfig(self, src, dst):copyConfig172,7376
  def copytree(self, src, dst, symlinks = False, copyFunc = shutil.copy2, exclude = [], exclude_ext= ['.DSYM','.o','.pyc','.html'], recurse = 1):copytree188,8062
  def fixConfFile(self, src):fixConfFile240,10291
  def fixConf(self):fixConf263,11548
  def createUninstaller(self):createUninstaller271,11887
  def installIncludes(self):installIncludes303,12788
  def installConf(self):installConf309,13080
  def installBin(self):installBin314,13457
  def installShare(self):installShare321,13725
  def copyLib(self, src, dst):copyLib332,14343
  def installLib(self):installLib357,15497
  def outputInstallDone(self):outputInstallDone363,15844
  def outputDestDirDone(self):outputDestDirDone375,16226
  def runsetup(self):runsetup384,16495
  def runcopy(self):runcopy389,16581
  def runfix(self):runfix409,17320
  def rundone(self):rundone413,17371
  def run(self):run421,17545

config/packages/lapack.py,255
class Lapack(package.Package):Lapack13,420
  def __init__(self,argdb,log):__init__15,452
  def ShowInfo(self):ShowInfo19,562
  def Process(self,conf,vars,cmake,petsc,archdir=''):Process29,978
  def Check(self,conf,vars,cmake,petsc):Check36,1214

config/packages/trlan.py,212
class Trlan(package.Package):Trlan14,440
  def __init__(self,argdb,log):__init__16,471
  def Check(self,conf,vars,cmake,petsc):Check29,985
  def Install(self,conf,vars,cmake,petsc,archdir):Install47,1387

config/packages/slepc.py,194
class SLEPc:SLEPc14,470
  def __init__(self,argdb,log):__init__16,484
  def ShowHelp(self):ShowHelp24,787
  def InitDir(self):InitDir31,1171
  def LoadVersion(self):LoadVersion43,1727

config/packages/petsc.py,253
class PETSc(package.Package):PETSc13,434
  def __init__(self,argdb,log):__init__15,465
  def Check(self):Check19,574
  def InitDir(self,prefixdir):InitDir22,637
  def LoadVersion(self):LoadVersion34,1035
  def LoadConf(self):LoadConf65,2350

config/packages/slicot.py,214
class Slicot(package.Package):Slicot14,440
  def __init__(self,argdb,log):__init__16,472
  def Check(self,conf,vars,cmake,petsc):Check30,939
  def Install(self,conf,vars,cmake,petsc,archdir):Install45,1272

config/packages/sowing.py,142
class Sowing(package.Package):Sowing14,445
  def __init__(self,argdb,log):__init__16,477
  def Install(self,archdir,make):Install23,714

config/packages/primme.py,214
class Primme(package.Package):Primme14,448
  def __init__(self,argdb,log):__init__16,480
  def Check(self,conf,vars,cmake,petsc):Check29,952
  def Install(self,conf,vars,cmake,petsc,archdir):Install78,2691

config/packages/blzpack.py,149
class Blzpack(package.Package):Blzpack13,420
  def __init__(self,argdb,log):__init__15,453
  def Check(self,conf,vars,cmake,petsc):Check23,692

config/packages/blopex.py,159
class Blopex(package.Package):Blopex14,448
  def __init__(self,argdb,log):__init__16,480
  def Install(self,conf,vars,cmake,petsc,archdir):Install26,862

config/packages/feast.py,145
class Feast(package.Package):Feast13,420
  def __init__(self,argdb,log):__init__15,451
  def Check(self,conf,vars,cmake,petsc):Check23,691

config/packages/arpack.py,261
class Arpack(package.Package):Arpack14,440
  def __init__(self,argdb,log):__init__16,472
  def Functions(self,petsc):Functions29,985
  def Check(self,conf,vars,cmake,petsc):Check55,1794
  def Install(self,conf,vars,cmake,petsc,archdir):Install73,2363

config/example_template.py,829
footer='petsc_testend "@TESTROOT@" 'footer35,786
todoline='printf "ok ${label} # TODO @TODOCOMMENT@\\n"'todoline37,824
skipline='printf "ok ${label} # SKIP @SKIPCOMMENT@\\n"'skipline38,880
mpitest='petsc_testrun "${mpiexec} -n ${nsize} ${exec} ${args} @SUBARGS@" @REDIRECT_FILE@ ${testname}.err "${label}@LABEL_SUFFIX@" @FILTER@'mpitest39,936
difftest='petsc_testrun "${diff_exe} @OUTPUT_FILE@ @REDIRECT_FILE@" diff-${testname}.out diff-${testname}.out diff-${label}@LABEL_SUFFIX@ ""'difftest40,1077
filterdifftest='petsc_testrun "@FILTER_OUTPUT@ @OUTPUT_FILE@ | ${diff_exe} - @REDIRECT_FILE@" diff-${testname}.out diff-${testname}.out diff-${label}@LABEL_SUFFIX@ ""'filterdifftest41,1219
commandtest='petsc_testrun "@COMMAND@" @REDIRECT_FILE@ ${testname}.err cmd-${label}@LABEL_SUFFIX@ @FILTER@'commandtest42,1387

config/log.py,269
class Log:Log14,453
  def Open(self,filename):Open16,465
  def Println(self,string):Println23,661
  def Print(self,string):Print27,739
  def NewSection(self,string):NewSection31,823
  def write(self,string):write36,957
  def Exit(self,string):Exit39,1015

config/cmakegen.py,1821
    class defaultdict(dict):defaultdict25,809
        def __init__(self, default_factory=None, *a, **kw):__init__26,838
        def __getitem__(self, key):__getitem__32,1165
        def __missing__(self, key):__missing__37,1343
        def __reduce__(self):__reduce__42,1540
        def copy(self):copy48,1771
        def __copy__(self):__copy__50,1830
        def __deepcopy__(self, memo):__deepcopy__52,1916
        def __repr__(self):__repr__56,2089
class StdoutLogger(object):StdoutLogger60,2249
  def write(self,str):write61,2277
def cmakeconditional(key,val):cmakeconditional64,2316
  def unexpected():unexpected65,2347
AUTODIRS = set('ftn-auto ftn-custom f90-custom'.split()) # Automatically recurse into these, if they existAUTODIRS89,3112
SKIPDIRS = set('benchmarks'.split())                     # Skip these during the buildSKIPDIRS90,3219
NOWARNDIRS = set('tests tutorials'.split())              # Do not warn about mismatch in theseNOWARNDIRS91,3306
def pathsplit(path):pathsplit93,3402
class Mistakes(object):Mistakes102,3685
    def __init__(self, log, verbose=False):__init__103,3709
    def compareDirLists(self,root, mdirs, dirs):compareDirLists108,3835
    def compareSourceLists(self, root, msources, files):compareSourceLists124,4624
    def summary(self):summary140,5515
def stripsplit(line):stripsplit146,6079
def pkgsources(pkg, mistakes):pkgsources149,6159
    def relpath(filename):relpath170,7204
def writeRoot(f,petscdir,petscprefixdir):writeRoot181,7762
def writePackage(f,pkg,pkgdeps,mistakes):writePackage224,9441
    def body(indentlevel):body227,9562
def main(slepcdir,petscdir,petscprefixdir,log=StdoutLogger(), verbose=False):main250,10546
    written = Truewritten291,12293
  parser = optparse.OptionParser()parser302,12524

config/argdb.py,382
class ArgDB:ArgDB13,415
  def __init__(self,argv):__init__15,429
  def UsedArgs(self):UsedArgs35,1217
  def PopString(self,keyword):PopString38,1272
  def PopPath(self,keyword):PopPath55,1686
  def PopUrl(self,keyword):PopUrl72,2130
  def PopBool(self,keyword):PopBool92,2639
  def PopHelp(self):PopHelp109,3048
  def ErrorIfNotEmpty(self):ErrorIfNotEmpty125,3423

config/gmakegen.py,1275
PKGS = 'sys eps svd pep nep mfn lme'.split()PKGS11,362
LANGS = dict(c='C', cxx='CXX', cu='CU', F='F', F90='F90')LANGS12,407
    def all(iterable):all17,544
    def _relpath(path, start=os.path.curdir):_relpath26,745
class debuglogger(object):debuglogger45,1429
    def __init__(self, log):__init__46,1456
    def write(self, string):write49,1510
class Slepc(object):Slepc52,1572
    def __init__(self, slepc_dir=None, petsc_dir=None, petsc_arch=None, installed_petsc=False, verbose=False):__init__53,1593
    def petsc_path(self, *args):petsc_path76,2779
    def arch_path(self, *args):arch_path82,2987
    def read_conf(self):read_conf85,3088
    def inconf(self, key, val):inconf105,4039
    def relpath(self, root, src):relpath116,4488
    def get_sources(self, makevars):get_sources119,4595
    def gen_pkg(self, pkg):gen_pkg126,4886
            def mkrel(src):mkrel147,5938
    def gen_gnumake(self, fd):gen_gnumake157,6385
        def write(stem, srcs):write158,6416
    def summary(self):summary168,6855
def WriteGnuMake(slepc):WriteGnuMake171,6911
def main(slepc_dir=None, petsc_dir=None, petsc_arch=None, installed_petsc=False, output=None, verbose=False):main185,7522
    parser = optparse.OptionParser()parser195,7949

config/gmakegentest.py,2426
thisscriptdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))thisscriptdir15,435
def install_files(source, destdir):install_files70,3319
class generateExamples(Slepc):generateExamples82,3761
  def __init__(self, slepc_dir=None, petsc_dir=None, petsc_arch=None, testdir='tests', installed_petsc=False, verbose=False, single_ex=False, srcdir=None):__init__87,3904
  def srcrelpath(self,rdir):srcrelpath144,5964
  def getInInstallDir(self,thisscriptdir):getInInstallDir150,6097
  def nameSpace(self,srcfile,srcdir):nameSpace168,6692
  def getLanguage(self,srcfile):getLanguage183,7198
  def _getLoopVars(self,inDict,testname, isSubtest=False):_getLoopVars198,7711
  def getArgLabel(self,testDict):getArgLabel255,9785
  def addToSources(self,exfile,rpath,srcDict):addToSources280,10766
  def addToTests(self,test,rpath,exfile,execname,testDict):addToTests302,11569
  def getExecname(self,exfile,rpath):getExecname317,12140
  def getSubstVars(self,testDict,rpath,testname):getSubstVars328,12464
  def _substVars(self,subst,origStr):_substVars425,16554
  def getCmds(self,subst,i):getCmds437,16885
  def _writeTodoSkip(self,fh,tors,reasons,footer):_writeTodoSkip479,18577
  def getLoopVarsHead(self,loopVars,i):getLoopVarsHead506,19481
  def getLoopVarsFoot(self,loopVars,i):getLoopVarsFoot522,20089
  def genRunScript(self,testname,root,isRun,srcDict):genRunScript530,20310
  def  genScriptsAndInfo(self,exfile,root,srcDict):genScriptsAndInfo610,23579
  def _isBuilt(self,exfile,srcDict):_isBuilt637,24669
  def _isRun(self,testDict, debug=False):_isRun666,25655
  def genPetscTests_summarize(self,dataDict):genPetscTests_summarize767,29558
  def genPetscTests(self,root,dirs,files,dataDict):genPetscTests805,30964
  def walktree(self,top):walktree838,32108
  def gen_gnumake(self, fd):gen_gnumake856,32700
    def write(stem, srcs):write860,32798
  def gen_pkg(self, pkg):gen_pkg885,34114
  def write_gnumake(self, dataDict, output=None):write_gnumake891,34239
def main(slepc_dir=None, petsc_dir=None, petsc_arch=None, installed_petsc=False, verbose=False, single_ex=False, srcdir=None, testdir=None):main958,36664
    parser = optparse.OptionParser()parser973,37461
         installed_petsc=opts.installed_petsc,installed_petsc992,38847
         verbose=opts.verbose,verbose993,38894
         testdir=opts.testdir)testdir995,38988

config/package.py,810
class Package:Package15,526
  def __init__(self,argdb,log):__init__17,542
  def ProcessArgs(self,argdb):ProcessArgs30,937
  def Process(self,conf,vars,cmake,petsc,archdir=''):Process54,1790
  def Precondition(self,petsc):Precondition72,2454
  def Download(self,externdir,builddir,prefix=None):Download90,3436
  def ShowHelp(self):ShowHelp151,5700
  def ShowInfo(self):ShowInfo162,6426
  def TestRuns(self,petsc):TestRuns167,6597
  def LinkWithOutput(self,functions,callbacks,flags):LinkWithOutput173,6717
  def Link(self,functions,callbacks,flags):Link224,8553
  def FortranLink(self,functions,callbacks,flags):FortranLink229,8713
  def GenerateGuesses(self,name):GenerateGuesses258,9620
  def FortranLib(self,conf,vars,cmake,dirs,libs,functions,callbacks = []):FortranLib277,10212
