| sys.exit('ERROR: PRIMME does not support single precision.') |
| if not directory: |
| sys.exit('ERROR: I cannot guess where the PRIMME directory is.') |
| sys.exit('ERROR: I cannot guess where is PRIMME directory.') |
| functions = ['primme_set_method','primme_Free','primme_initialize'] |
| if petscconf.SCALAR == 'real': |
| sys.exit('ERROR: PRIMME link test failed.') |
| return flags + libs |
| print ' --with-trlan-dir=<dir> : Indicate the directory for TRLAN libraries' |
| print ' --with-trlan-flags=<flags> : Indicate comma-separated flags for linking TRLAN' |
| print 'PRIMME:' |
| print ' --with-primme-dir=<dir> : Indicate the directory for PRIMME libraries' |
| print ' --with-primme : Indicate if you wish to test for PRIMME' |
| print ' --with-primme-dir=<dir> : Indicate the directory for PRIMME libraries' |
| sys.exit(0) |
| else: |
| sys.exit('ERROR: Invalid argument ' + i +' use -h for help') |
| # Check some information about PETSc configuration |
| petscconf.Load(petscdir) |
| #if petscconf.VERSION != '2.3.1': |
| # sys.exit('ERROR: This SLEPc version is not compatible with PETSc version '+petscconf.VERSION) |
| if petscconf.VERSION != '2.3.1': |
| sys.exit('ERROR: This SLEPc version is not compatible with PETSc version '+petscconf.VERSION) |
| if not petscconf.PRECISION in ['double','single','matsingle']: |
| sys.exit('ERROR: This SLEPc version does not work with '+petscconf.PRECISION+' precision') |