Skip to content

Commit

Permalink
Merge branch 'master' into add-value-types
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Aneurin Tribello committed Sep 26, 2024
2 parents c4ce154 + 9045979 commit 7223d69
Show file tree
Hide file tree
Showing 32 changed files with 26 additions and 13 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,13 @@ void gmx::LegacySimulator::do_md()
do_verbose && !bPMETunePrinting);
upd.updateAfterPartition(state_->numAtoms(), md->cFREEZE, md->cTC, md->cACC);
fr_->longRangeNonbondeds->updateAfterPartition(*md);
/* PLUMED */
if(plumedswitch){
int nat_home = dd_numHomeAtoms(*cr_->dd);
plumed_cmd(plumedmain,"setAtomsNlocal",&nat_home);
plumed_cmd(plumedmain,"setAtomsGatindex",cr_->dd->globalAtomIndices.data());
}
/* END PLUMED */
}
}

Expand Down Expand Up @@ -1721,7 +1728,6 @@ void gmx::LegacySimulator::do_md()
trotter_update(ir,
step,
ekind_,
enerd_,
state_,
total_vir,
md->homenr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,6 @@ void gmx::LegacySimulator::do_md()
trotter_update(ir,
step,
ekind_,
enerd_,
state_,
total_vir,
md->homenr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2248,11 +2248,15 @@ int Mdrunner::mdrunner()
deviceStreamManager->context(),
deviceStreamManager->stream(gmx::DeviceStreamType::NonBondedLocal),
wcycle.get());
fr->gpuForceReduction[gmx::AtomLocality::NonLocal] =
std::make_unique<gmx::GpuForceReduction>(
deviceStreamManager->context(),
deviceStreamManager->stream(gmx::DeviceStreamType::NonBondedNonLocal),
wcycle.get());

if (runScheduleWork.simulationWork.havePpDomainDecomposition)
{
fr->gpuForceReduction[gmx::AtomLocality::NonLocal] =
std::make_unique<gmx::GpuForceReduction>(
deviceStreamManager->context(),
deviceStreamManager->stream(gmx::DeviceStreamType::NonBondedNonLocal),
wcycle.get());
}

if (runScheduleWork.simulationWork.useMdGpuGraph)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2234,11 +2234,15 @@ int Mdrunner::mdrunner()
deviceStreamManager->context(),
deviceStreamManager->stream(gmx::DeviceStreamType::NonBondedLocal),
wcycle.get());
fr->gpuForceReduction[gmx::AtomLocality::NonLocal] =
std::make_unique<gmx::GpuForceReduction>(
deviceStreamManager->context(),
deviceStreamManager->stream(gmx::DeviceStreamType::NonBondedNonLocal),
wcycle.get());

if (runScheduleWork.simulationWork.havePpDomainDecomposition)
{
fr->gpuForceReduction[gmx::AtomLocality::NonLocal] =
std::make_unique<gmx::GpuForceReduction>(
deviceStreamManager->context(),
deviceStreamManager->stream(gmx::DeviceStreamType::NonBondedNonLocal),
wcycle.get());
}

if (runScheduleWork.simulationWork.useMdGpuGraph)
{
Expand Down
2 changes: 1 addition & 1 deletion src/tools/SwitchingFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ s(r) = 1 - \tanh\left( \frac{ r - d_0 }{ r_0 } \right)
\f$s(r) =\left\{\begin{array}{ll}
1 & \mathrm{if } r \leq d_0 \\
0.5 \left( \cos ( \frac{ r - d_0 }{ r_0 } \pi ) + 1 \right) & \mathrm{if } d_0 < r\leq d_0 + r_0 \\
0 & \mathrm{if } r < d_0 + r_0
0 & \mathrm{if } r > d_0 + r_0
\end{array}\right.
\f$
</td> <td>
Expand Down

1 comment on commit 7223d69

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/ANGLES.tmp
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/CAVITY.tmp
Found broken examples in automatic/CLASSICAL_MDS.tmp
Found broken examples in automatic/CLUSTER_DIAMETER.tmp
Found broken examples in automatic/CLUSTER_DISTRIBUTION.tmp
Found broken examples in automatic/CLUSTER_PROPERTIES.tmp
Found broken examples in automatic/CONSTANT.tmp
Found broken examples in automatic/CONTACT_MATRIX.tmp
Found broken examples in automatic/CONTACT_MATRIX_PROPER.tmp
Found broken examples in automatic/CONVERT_TO_FES.tmp
Found broken examples in automatic/COORDINATIONNUMBER.tmp
Found broken examples in automatic/DFSCLUSTERING.tmp
Found broken examples in automatic/DISTANCE_FROM_CONTOUR.tmp
Found broken examples in automatic/DUMPCUBE.tmp
Found broken examples in automatic/DUMPGRID.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FIND_CONTOUR.tmp
Found broken examples in automatic/FIND_CONTOUR_SURFACE.tmp
Found broken examples in automatic/FIND_SPHERICAL_CONTOUR.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/GPROPERTYMAP.tmp
Found broken examples in automatic/HBOND_MATRIX.tmp
Found broken examples in automatic/HISTOGRAM.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/INCYLINDER.tmp
Found broken examples in automatic/INENVELOPE.tmp
Found broken examples in automatic/INTERPOLATE_GRID.tmp
Found broken examples in automatic/LOCAL_AVERAGE.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/METATENSOR.tmp
Found broken examples in automatic/MULTICOLVARDENS.tmp
Found broken examples in automatic/OUTPUT_CLUSTER.tmp
Found broken examples in automatic/PAMM.tmp
Found broken examples in automatic/PCA.tmp
Found broken examples in automatic/PCAVARS.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in automatic/PYCVINTERFACE.tmp
Found broken examples in automatic/PYTHONFUNCTION.tmp
Found broken examples in automatic/Q3.tmp
Found broken examples in automatic/Q4.tmp
Found broken examples in automatic/Q6.tmp
Found broken examples in automatic/QUATERNION.tmp
Found broken examples in automatic/REWEIGHT_BIAS.tmp
Found broken examples in automatic/REWEIGHT_METAD.tmp
Found broken examples in automatic/SIZESHAPE_POSITION_LINEAR_PROJ.tmp
Found broken examples in automatic/SIZESHAPE_POSITION_MAHA_DIST.tmp
Found broken examples in automatic/SPRINT.tmp
Found broken examples in automatic/TETRAHEDRALPORE.tmp
Found broken examples in automatic/TORSIONS.tmp
Found broken examples in automatic/WHAM_HISTOGRAM.tmp
Found broken examples in automatic/WHAM_WEIGHTS.tmp
Found broken examples in AnalysisPP.md
Found broken examples in CollectiveVariablesPP.md
Found broken examples in MiscelaneousPP.md

Please sign in to comment.