Go to the source code of this file.
Functions | |
| disp (' ***check solution restricted to mat(1:n-10, 1:n-10)') | |
| if(norm(mat(1:n-10, 1:n-10) *id.SOL(1:n-10) - ones(n-10, 1), 'inf') > sqrt(eps)) disp('WARNING else | disp ('SCHUR SOLUTION CHECK1 OK') |
| end | norm (mat(1:n-10, 1:n-10) *id.SOL(1:n-10) - ones(n-10, 1), 'inf') % we want to use Schur complement to solve % A *sol |
| id | RHS (1:n-10) |
| disp (' ***check complete solution') | |
| if(norm(r, 'inf') > sqrt(eps)) disp('WARNING else | disp ('SCHUR SOLUTION CHECK2 OK') |
| end | norm (r, 'inf') %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % NOW TRY REDUCED RHS FUNCTIONALITY %(easier to use than previous % computations) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% id.JOB |
| Do forward solution step to obtain a reduced RHS id | ICNTL (26) |
| disp (' ***check solution when REDRHS is used') | |
| if(norm(r, 'inf') > sqrt(eps)) disp('WARNING else | disp ('SCHUR SOLUTION CHECK3 OK') |
Variables | |
| id = dmumps(id) | |
| load | lhr01 |
| mat = Problem.A | |
| themax = max(max(abs(mat))) | |
| n = size(mat,1) | |
| initialization of Schur option id | VAR_SCHUR = [n-9:n] |
| JOB | |
| id | RHS = ones(size(mat,1),1) |
| rhsy = ones(10,1)-mat(n-9:n,1:n-10)*sol1 | |
| TO | CHANGE |
| rhsx = mat(1:n-10,n-9:n)*y | |
| x = sol1-rhsx | |
| sol = [x | |
| y | |
| r = mat*sol - ones(n,1) | |
| Solve the problem on the interface id | REDRHS = id.SCHUR \ id.REDRHS |
| disp | ( | ' ***check complete solution' | ) |
| disp | ( | ' ***check solution when REDRHS is used' | ) |
| if(norm(mat(1:n-10, 1:n-10) *id.SOL(1:n-10) - ones(n-10, 1), 'inf') > sqrt(eps)) disp( 'WARNING else disp | ( | 'SCHUR SOLUTION CHECK1 OK' | ) |
| TO CHANGE |
Definition at line 43 of file schur_example.m.
Definition at line 5 of file schur_example.m.
| id JOB |
Definition at line 15 of file schur_example.m.
| load lhr01 |
Definition at line 6 of file schur_example.m.
| mat = Problem.A |
Definition at line 7 of file schur_example.m.
| n = size(mat,1) |
Definition at line 9 of file schur_example.m.
Definition at line 55 of file schur_example.m.
Definition at line 79 of file schur_example.m.
Definition at line 17 of file schur_example.m.
| sol = [x |
Definition at line 54 of file schur_example.m.
Definition at line 8 of file schur_example.m.
Definition at line 13 of file schur_example.m.
| x = sol1-rhsx |
Definition at line 53 of file schur_example.m.
| y |
Definition at line 54 of file schur_example.m.