Skip to content

Commit e2bd462

Browse files
committed
Adding default for krylov space dimension for CG adn BICGS linear solver types
1 parent d481d9d commit e2bd462

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • Code/Source/liner_solver

Code/Source/liner_solver/ls.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,20 @@ void fsils_ls_create(FSILS_lsType& ls, LinearSolverType LS_type, double relTol,
3434

3535
case LinearSolverType::LS_TYPE_GMRES:
3636
ls.RI.relTol = 0.1;
37-
ls.RI.mItr = 4;
37+
ls.RI.mItr = 1000;
3838
ls.RI.sD = 250;
3939
break;
4040

4141
case LinearSolverType::LS_TYPE_CG:
4242
ls.RI.relTol = 1.E-2;
4343
ls.RI.mItr = 1000;
44+
ls.RI.sD = 250;
4445
break;
4546

4647
case LinearSolverType::LS_TYPE_BICGS:
4748
ls.RI.relTol = 1.E-2;
48-
ls.RI.mItr = 500;
49+
ls.RI.mItr = 1000;
50+
ls.RI.sD = 250;
4951
break;
5052

5153
default:

0 commit comments

Comments
 (0)