Difference for src/ComputeGridForce.C from version 1.4 to 1.5

version 1.4version 1.5
Line 10
Line 10
 #include "HomePatch.h" #include "HomePatch.h"
 #include "Molecule.h" #include "Molecule.h"
  
 #define DEBUGM //#define DEBUGM
 #define MIN_DEBUG_LEVEL 4 #define MIN_DEBUG_LEVEL 4
 #include "Debug.h" #include "Debug.h"
  
Line 226
Line 226
  + gbox.b[56] + gbox.b[57] + gbox.b[58] + gbox.b[59] + gbox.b[60] + gbox.b[61] + gbox.b[62] + gbox.b[63];  + gbox.b[56] + gbox.b[57] + gbox.b[58] + gbox.b[59] + gbox.b[60] + gbox.b[61] + gbox.b[62] + gbox.b[63];
            
      //for (int j = 0; j < 64; j++) DebugM(4, "a[" << j << "] = " << a[j] << "\n" << endi);      //for (int j = 0; j < 64; j++) DebugM(4, "a[" << j << "] = " << a[j] << "\n" << endi);
      for (int j = 0; j < 64; j++) DebugM(4, "b[" << j << "] = " << gbox.b[j] << "\n" << endi);      //for (int j = 0; j < 64; j++) DebugM(4, "b[" << j << "] = " << gbox.b[j] << "\n" << endi);
            
      // Calculate powers of x, y, z for later use      // Calculate powers of x, y, z for later use
      // e.g. x[2] = x^2      // e.g. x[2] = x^2
Line 253
Line 253
  }  }
      }      }
            
      Force force = scale * Tensor::diagonal(simParams->gridforceScale) * charge * (inv * f); //      Force force = scale * Tensor::diagonal(simParams->gridforceScale) * charge * (inv * f);
       Force force = scale * Tensor::diagonal(simParams->gridforceScale) * charge * (f * inv); // Must multiply ON THE RIGHT by inv tensor
            
       DebugM(4, "f4 = " << f << "\n" << endi);
      DebugM(4, "force4 = " << force << "\n" << endi);      DebugM(4, "force4 = " << force << "\n" << endi);
      DebugM(4, "v4 = " << v << "\n" << endi);      DebugM(4, "v4 = " << v << "\n" << endi);
            


Legend:
Removed in v.1.4 
changed lines
 Added in v.1.5



Made by using version 1.53 of cvs2html