From f4e4fd12bdab029a23ec3eccfa6d1233cdebe345 Mon Sep 17 00:00:00 2001
From: Akash Anand <akasha@iitk.ac.in>
Date: Fri, 3 Aug 2007 17:59:46 +0000
Subject: [PATCH] *** empty log message ***

---
 contrib/FourierModel/FPatch.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/contrib/FourierModel/FPatch.cpp b/contrib/FourierModel/FPatch.cpp
index f9213a714f..3038160737 100644
--- a/contrib/FourierModel/FPatch.cpp
+++ b/contrib/FourierModel/FPatch.cpp
@@ -24,14 +24,16 @@ FPatch::FPatch(int tag, ProjectionSurface* ps,
   _uModes = uModes;
   _vModes = vModes;
 
-  _uM = (int)(log((double)uM) / log(2.));
-  _vM = (int)(log((double)vM) / log(2.));
+  _uM = (int)pow(2.,(int)(log((double)uM) / log(2.)));
+  _vM = (int)pow(2.,(int)(log((double)vM) / log(2.)));
 
   if (_ps->IsUPeriodic())
     _uM++;
   if (_ps->IsVPeriodic())
     _vM++;
 
+  printf("%d %d\n",_uM,_vM);
+
   _hardEdge[0] = hardEdge0;
   _hardEdge[1] = hardEdge1;
   _hardEdge[2] = hardEdge2;
-- 
GitLab