Changeset 026b2c5 for src/solvers/pcg.F90
- Timestamp:
- 12/11/10 14:04:07 (2 years ago)
- Branches:
- master, external, fix-prolong, refactor, refactor-subsolvers
- Children:
- 82752f1
- Parents:
- b77a46f
- git-author:
- Oleg Batrashev <ogbash@…> (12/11/10 14:04:07)
- git-committer:
- Oleg Batrashev <ogbash@…> (12/11/10 14:04:07)
- File:
-
- 1 edited
-
src/solvers/pcg.F90 (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/solvers/pcg.F90
rb77a46f r026b2c5 414 414 endif 415 415 ! ---------------------------- 416 isFirstIter = .not.(present(refactor_).and.refactor_)416 isFirstIter = present(refactor_).and.refactor_ 417 417 if (sctls%method==0) then 418 418 sol=rhs … … 458 458 end if 459 459 460 ! Send coarse vector461 call SpMtx_Ax(clrhs,Restrict,rhs,dozero=.true.) ! restrict <RA>462 if (cdat_vec%active) then463 call AllSendCoarseVector(clrhs,cdat_vec%nprocs,cdat_vec%cdisps,&464 cdat_vec%send,useprev=isFirstIter)465 else466 call AllSendCoarseVector(clrhs,cdat%nprocs,cdat%cdisps,&467 cdat%send,useprev=isFirstIter)468 endif469 470 460 ! allocate coarse vectors 471 461 if (isFirstIter) then … … 485 475 allocate(tmpsol(size(rhs))) 486 476 endif 477 allocate(clrhs(Restrict%nrows)) ! allocate memory for vector 487 478 end if 479 480 ! Send coarse vector 481 call SpMtx_Ax(clrhs,Restrict,rhs,dozero=.true.) ! restrict <RA> 482 if (cdat_vec%active) then 483 call AllSendCoarseVector(clrhs,cdat_vec%nprocs,cdat_vec%cdisps,& 484 cdat_vec%send,useprev=.not.isFirstIter) 485 else 486 call AllSendCoarseVector(clrhs,cdat%nprocs,cdat%cdisps,& 487 cdat%send,useprev=.not.isFirstIter) 488 endif 488 489 489 490 ! first level prec
Note: See TracChangeset
for help on using the changeset viewer.
