Closed zhyxue0 closed 2 years ago
The constraint is that only assembling a nested matrix is supported. (Equivalent to passing mat_type="nest"
to solve
). This means that direct solvers won't work ( though you can use them inside a Schur compliment) however iterative solvers such as GMRes should work.
Thanks, I change the solver_parameters
, but it still does not work
solver_parameters={
"ksp_type": "gmres",
'ksp_converged_reason': None,
'ksp_monitor_true_residual': None,
'ksp_view': None
}
Do I need to change other parameters?
The constraint is that only assembling a nested matrix is supported. (Equivalent to passing
mat_type="nest"
tosolve
). This means that direct solvers won't work ( though you can use them inside a Schur compliment) however iterative solvers such as GMRes should work.
try passing mat_type="nest"
to solve
.
try passing
mat_type="nest"
tosolve
.
Thanks, it works.
solver_parameters={
"ksp_type": "gmres",
'mat_type': 'nest',
'ksp_rtol': 1e-15,
'ksp_atol': 1e-50,
'ksp_divtol': 1e4,
'ksp_max_it': 10000,
'ksp_converged_reason': None,
'ksp_monitor_true_residual': None,
'ksp_view': None
}
I tried this example The (R) space by using different parameters of the solver(gmres and direct solver), but all failed.
Here is the code:
Here is the feedback:
I noticed that the feedback mentioned that
Mixed Monolithic Matrices with Global Rows or Columns Are Not Supported
andMonolithic matrix assembly not supported for systems with R-space blocks
.Can I only use the default solver
Schur complement elimination PC
? Or there are other choices?