Changeset a16eb98


Ignore:
Timestamp:
01/30/11 12:35:33 (2 years ago)
Author:
Oleg Batrashev <ogbash@…>
Branches:
fix-prolong
Parents:
3c81144
git-author:
Oleg Batrashev <ogbash@…> (01/30/11 12:35:33)
git-committer:
Oleg Batrashev <ogbash@…> (01/30/11 12:35:33)
Message:

localize aggregate numbers in prolong exchange.

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/coarse/CoarseMtx.F90

    r3c81144 ra16eb98  
    116116    integer :: nnz 
    117117    type(SpMtx) :: extR 
     118    integer :: k, k2 
    118119 
    119120    ! collect restrict values from external node to local coarse support 
    120121    call collectRestrictValues(extR) 
    121     extR%indj = M%gl_fmap(extR%indj) 
    122122    write(stream,*) "extRESTRICT" 
    123123    call SpMtx_printRaw(extR) 
     124 
     125    ! debug, test if all values are present 
     126    do k=1,extR%nnz 
     127      k2 = SpMtx_findElem(R, extR%indi(k), extR%indj(k)) 
     128      if (k2<=0) then 
     129        write(stream,*) "NOT FOUND", k 
     130        cycle 
     131      end if 
     132      if (abs(R%val(k2)-extR%val(k))>1E-6) then 
     133        write(stream,*) "NOT EQUAL", k 
     134      end if 
     135    end do 
    124136 
    125137  contains 
     
    257269         nnz = nnz+ninds 
    258270      end do 
     271 
     272      ! localize 
     273      eR%indi = cdat%gl_cfmap(eR%indi) 
     274      eR%indj = M%gl_fmap(eR%indj) 
    259275 
    260276      ! wait for all data to be sent 
  • src/datatypes/SpMtx/SpMtx_aggregation.F90

    rd277181 ra16eb98  
    614614    if (plot==1.or.plot==3) then 
    615615      if (numprocs>1) then 
     616        write(stream,*) "PLOTTING" 
    616617        if (ismaster()) then 
    617618          allocate(aggrnum(M%ngf)) 
  • src/main/aggr.F90

    r3c81144 ra16eb98  
    160160    endif 
    161161    if (numprocs>1) then 
    162       plotting=0 
     162      plotting=sctls%plotting 
    163163    else 
    164164      plotting=sctls%plotting 
     
    211211      call CoarseMtxBuild(A,cdat%LAC,Restrict,A_ghost) 
    212212      !write(stream,*) "A%aggr%num", A%aggr%num 
    213       !call KeepGivenRowIndeces(Restrict,A%aggr%num) 
     213      call KeepGivenRowIndeces(Restrict,A%aggr%num) 
    214214      !write(stream,*) "Restrict%nrows", Restrict%nrows 
    215215!write(stream,*)'Restrict local is:==================' 
Note: See TracChangeset for help on using the changeset viewer.