From 459ce22bb31eae0b546d8e43260ce57c8fcdf01c Mon Sep 17 00:00:00 2001 From: Azusa Yamaguchi Date: Sun, 14 Jun 2015 01:07:58 +0100 Subject: [PATCH] WHere should always have precisely matching types in ET system --- lib/algorithms/CoarsenedMatrix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/algorithms/CoarsenedMatrix.h b/lib/algorithms/CoarsenedMatrix.h index 96a40fe7..fe801106 100644 --- a/lib/algorithms/CoarsenedMatrix.h +++ b/lib/algorithms/CoarsenedMatrix.h @@ -183,7 +183,7 @@ namespace Grid { int dir = geom.directions[p]; int disp = geom.displacements[p]; - int block=(FineGrid->_rdimensions[dir])/(Grid()->_rdimensions[dir]); + Integer block=(FineGrid->_rdimensions[dir])/(Grid()->_rdimensions[dir]); LatticeCoordinate(coor,dir); @@ -204,8 +204,8 @@ namespace Grid { oblock = where(mod(coor,block)==(block-1),Mphi,zz); iblock = where(mod(coor,block)!=(block-1),Mphi,zz); } else if ( disp==-1 ) { - oblock = where(mod(coor,block)==0,Mphi,zz); - iblock = where(mod(coor,block)!=0,Mphi,zz); + oblock = where(mod(coor,block)==(Integer)0,Mphi,zz); + iblock = where(mod(coor,block)!=(Integer)0,Mphi,zz); } else { assert(0); }