Difference for src/Patch.C from version 1.1069 to 1.1070

version 1.1069version 1.1070
Line 37
Line 37
  
 Patch::~Patch() { Patch::~Patch() {
   delete atomMapper;   delete atomMapper;
  #ifndef NAMD_CUDA
   delete reduction;   delete reduction;
  #endif
 } }
  
 Patch::Patch(PatchID pd) : Patch::Patch(PatchID pd) :
Line 80
Line 82
  
   lattice = Node::Object()->simParameters->lattice;   lattice = Node::Object()->simParameters->lattice;
   atomMapper = new AtomMapper(pd);   atomMapper = new AtomMapper(pd);
  #ifndef NAMD_CUDA
   reduction = ReductionMgr::Object()->willSubmit(REDUCTIONS_BASIC);   reduction = ReductionMgr::Object()->willSubmit(REDUCTIONS_BASIC);
  #endif
  
   // DMK   // DMK
   #if defined(NAMD_MIC)   #if defined(NAMD_MIC)
Line 249
Line 253
 void Patch::forceBoxClosed(void) void Patch::forceBoxClosed(void)
 { {
    DebugM(4, "patchID("<<patchID<<") forceBoxClosed! call\n");    DebugM(4, "patchID("<<patchID<<") forceBoxClosed! call\n");
  #ifndef NAMD_CUDA
    // calculate direct nonbonded virial from segregated forces and aggregate forces    // calculate direct nonbonded virial from segregated forces and aggregate forces
    const Vector center = lattice.unscale( PatchMap::Object()->center(patchID) );    const Vector center = lattice.unscale( PatchMap::Object()->center(patchID) );
 #ifdef REMOVE_PROXYDATAMSG_EXTRACOPY #ifdef REMOVE_PROXYDATAMSG_EXTRACOPY
Line 299
Line 304
       reduction->item(roff + REDUCTION_VIRIAL_NBOND_ZZ) += virial_zz;       reduction->item(roff + REDUCTION_VIRIAL_NBOND_ZZ) += virial_zz;
    }    }
    reduction->submit();    reduction->submit();
  #endif
  
    for (int j = 0; j < Results::maxNumForces; ++j )    for (int j = 0; j < Results::maxNumForces; ++j )
    {    {


Legend:
Removed in v.1.1069 
changed lines
 Added in v.1.1070



Made by using version 1.53 of cvs2html