Move linear algebra package testing for the same problem into a single directory #251
Open
1 task done
Labels
enhancement
New feature or request
Use Case
The current linear algebra package (e.g. PETSc) testing has a separate directory in test/cases for each package and preconditioner
Each case duplicates mesh and boundary condition data files. The XML input files are also duplicated so any change to that file must also be changed in five other locations.
It would be better to have all of the linear algebra packages tested in a single directory.
Problem
See above
Solution
Solution 1: Enable reading the XML
Linear_algebra
parameters from an XML fileCreate a
tril_ilut.xml
file containingThen add a
input_parameter
attribute to theLinear_algebra
keyword that would be used to read in theLinear_algebra
parameter XML fileThe value of
linear_algebra_file
would be set as an argument to the svFSIplus commandThis would require moderate code changes primarily to the Parameters class but is probably not in general very useful.
Solution 2: Create a Python script to generate variations of
Linear_algebra
parameters from a solver input XML file.For example, write a
change-linear-algebra.py
script that takes the package name and preconditioner, copies the file just substituting theLinear_algebra
parameters.Run the script when the svFSI.xml file changes.
This script would be fairly simple to write.
Alternatives considered
see above
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: