Step-40 test for 8.3.0 and earlier
Integrated part of step-40 to be tested for earlier versions of dealii
This commit is contained in:
parent
d7e84fe07c
commit
4f591a6fe3
@ -228,7 +228,6 @@ def install(self, spec, prefix):
|
|||||||
|
|
||||||
# take step-40 which can use both PETSc and Trilinos
|
# take step-40 which can use both PETSc and Trilinos
|
||||||
# FIXME: switch step-40 to MPI run
|
# FIXME: switch step-40 to MPI run
|
||||||
if spec.satisfies('@8.4.0:'):
|
|
||||||
with working_dir('examples/step-40'):
|
with working_dir('examples/step-40'):
|
||||||
print('=====================================')
|
print('=====================================')
|
||||||
print('========== Step-40 PETSc ============')
|
print('========== Step-40 PETSc ============')
|
||||||
@ -245,12 +244,17 @@ def install(self, spec, prefix):
|
|||||||
print('========= Step-40 Trilinos ==========')
|
print('========= Step-40 Trilinos ==========')
|
||||||
print('=====================================')
|
print('=====================================')
|
||||||
# change Linear Algebra to Trilinos
|
# change Linear Algebra to Trilinos
|
||||||
|
if spec.satisfies('@8.4.0:'):
|
||||||
filter_file(r'(\/\/ #define FORCE_USE_OF_TRILINOS.*)',
|
filter_file(r'(\/\/ #define FORCE_USE_OF_TRILINOS.*)',
|
||||||
('#define FORCE_USE_OF_TRILINOS'), 'step-40.cc')
|
('#define FORCE_USE_OF_TRILINOS'), 'step-40.cc')
|
||||||
|
else:
|
||||||
|
filter_file(r'(#define USE_PETSC_LA.*)',
|
||||||
|
('// #define USE_PETSC_LA'), 'step-40.cc')
|
||||||
if '^trilinos+hypre' in spec:
|
if '^trilinos+hypre' in spec:
|
||||||
make('release')
|
make('release')
|
||||||
make('run', parallel=False)
|
make('run', parallel=False)
|
||||||
|
|
||||||
|
if spec.satisfies('@8.4.0:'):
|
||||||
print('=====================================')
|
print('=====================================')
|
||||||
print('=== Step-40 Trilinos SuperluDist ====')
|
print('=== Step-40 Trilinos SuperluDist ====')
|
||||||
print('=====================================')
|
print('=====================================')
|
||||||
|
Loading…
Reference in New Issue
Block a user