hillclimber 0.1.5a8__cp314-cp314-macosx_15_0_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hillclimber/__init__.py +39 -0
- hillclimber/actions.py +53 -0
- hillclimber/analysis.py +590 -0
- hillclimber/biases.py +293 -0
- hillclimber/calc.py +22 -0
- hillclimber/cvs.py +1065 -0
- hillclimber/interfaces.py +133 -0
- hillclimber/metadynamics.py +325 -0
- hillclimber/nodes.py +6 -0
- hillclimber/opes.py +359 -0
- hillclimber/selectors.py +230 -0
- hillclimber/virtual_atoms.py +341 -0
- hillclimber-0.1.5a8.dist-info/METADATA +209 -0
- hillclimber-0.1.5a8.dist-info/RECORD +469 -0
- hillclimber-0.1.5a8.dist-info/WHEEL +6 -0
- hillclimber-0.1.5a8.dist-info/entry_points.txt +8 -0
- hillclimber-0.1.5a8.dist-info/licenses/LICENSE +165 -0
- plumed/__init__.py +104 -0
- plumed/_lib/bin/plumed +0 -0
- plumed/_lib/bin/plumed-config +9 -0
- plumed/_lib/bin/plumed-patch +9 -0
- plumed/_lib/include/plumed/adjmat/AdjacencyMatrixBase.h +659 -0
- plumed/_lib/include/plumed/adjmat/ContactMatrix.h +59 -0
- plumed/_lib/include/plumed/asmjit/arch.h +228 -0
- plumed/_lib/include/plumed/asmjit/arm.h +43 -0
- plumed/_lib/include/plumed/asmjit/asmjit.h +69 -0
- plumed/_lib/include/plumed/asmjit/asmjit_apibegin.h +143 -0
- plumed/_lib/include/plumed/asmjit/asmjit_apiend.h +93 -0
- plumed/_lib/include/plumed/asmjit/asmjit_build.h +971 -0
- plumed/_lib/include/plumed/asmjit/assembler.h +183 -0
- plumed/_lib/include/plumed/asmjit/base.h +56 -0
- plumed/_lib/include/plumed/asmjit/codebuilder.h +944 -0
- plumed/_lib/include/plumed/asmjit/codecompiler.h +767 -0
- plumed/_lib/include/plumed/asmjit/codeemitter.h +528 -0
- plumed/_lib/include/plumed/asmjit/codeholder.h +777 -0
- plumed/_lib/include/plumed/asmjit/constpool.h +286 -0
- plumed/_lib/include/plumed/asmjit/cpuinfo.h +402 -0
- plumed/_lib/include/plumed/asmjit/func.h +1327 -0
- plumed/_lib/include/plumed/asmjit/globals.h +370 -0
- plumed/_lib/include/plumed/asmjit/inst.h +137 -0
- plumed/_lib/include/plumed/asmjit/logging.h +317 -0
- plumed/_lib/include/plumed/asmjit/misc_p.h +103 -0
- plumed/_lib/include/plumed/asmjit/moved_string.h +318 -0
- plumed/_lib/include/plumed/asmjit/operand.h +1599 -0
- plumed/_lib/include/plumed/asmjit/osutils.h +207 -0
- plumed/_lib/include/plumed/asmjit/regalloc_p.h +597 -0
- plumed/_lib/include/plumed/asmjit/runtime.h +227 -0
- plumed/_lib/include/plumed/asmjit/simdtypes.h +1104 -0
- plumed/_lib/include/plumed/asmjit/utils.h +1387 -0
- plumed/_lib/include/plumed/asmjit/vmem.h +183 -0
- plumed/_lib/include/plumed/asmjit/x86.h +45 -0
- plumed/_lib/include/plumed/asmjit/x86assembler.h +125 -0
- plumed/_lib/include/plumed/asmjit/x86builder.h +117 -0
- plumed/_lib/include/plumed/asmjit/x86compiler.h +322 -0
- plumed/_lib/include/plumed/asmjit/x86emitter.h +5149 -0
- plumed/_lib/include/plumed/asmjit/x86globals.h +535 -0
- plumed/_lib/include/plumed/asmjit/x86inst.h +2547 -0
- plumed/_lib/include/plumed/asmjit/x86instimpl_p.h +74 -0
- plumed/_lib/include/plumed/asmjit/x86internal_p.h +108 -0
- plumed/_lib/include/plumed/asmjit/x86logging_p.h +92 -0
- plumed/_lib/include/plumed/asmjit/x86misc.h +417 -0
- plumed/_lib/include/plumed/asmjit/x86operand.h +1133 -0
- plumed/_lib/include/plumed/asmjit/x86regalloc_p.h +734 -0
- plumed/_lib/include/plumed/asmjit/zone.h +1157 -0
- plumed/_lib/include/plumed/bias/Bias.h +82 -0
- plumed/_lib/include/plumed/bias/ReweightBase.h +58 -0
- plumed/_lib/include/plumed/blas/blas.h +253 -0
- plumed/_lib/include/plumed/blas/def_external.h +61 -0
- plumed/_lib/include/plumed/blas/def_internal.h +97 -0
- plumed/_lib/include/plumed/blas/real.h +49 -0
- plumed/_lib/include/plumed/cltools/CLTool.h +32 -0
- plumed/_lib/include/plumed/clusters/ClusteringBase.h +70 -0
- plumed/_lib/include/plumed/colvar/Colvar.h +32 -0
- plumed/_lib/include/plumed/colvar/ColvarInput.h +68 -0
- plumed/_lib/include/plumed/colvar/ColvarShortcut.h +81 -0
- plumed/_lib/include/plumed/colvar/CoordinationBase.h +52 -0
- plumed/_lib/include/plumed/colvar/MultiColvarTemplate.h +333 -0
- plumed/_lib/include/plumed/colvar/PathMSDBase.h +101 -0
- plumed/_lib/include/plumed/colvar/RMSDVector.h +78 -0
- plumed/_lib/include/plumed/config/Config.h +118 -0
- plumed/_lib/include/plumed/config/version.h +9 -0
- plumed/_lib/include/plumed/contour/ContourFindingObject.h +87 -0
- plumed/_lib/include/plumed/contour/DistanceFromContourBase.h +82 -0
- plumed/_lib/include/plumed/contour/FindContour.h +67 -0
- plumed/_lib/include/plumed/core/Action.h +540 -0
- plumed/_lib/include/plumed/core/ActionAnyorder.h +48 -0
- plumed/_lib/include/plumed/core/ActionAtomistic.h +343 -0
- plumed/_lib/include/plumed/core/ActionForInterface.h +99 -0
- plumed/_lib/include/plumed/core/ActionPilot.h +57 -0
- plumed/_lib/include/plumed/core/ActionRegister.h +124 -0
- plumed/_lib/include/plumed/core/ActionSet.h +163 -0
- plumed/_lib/include/plumed/core/ActionSetup.h +48 -0
- plumed/_lib/include/plumed/core/ActionShortcut.h +73 -0
- plumed/_lib/include/plumed/core/ActionToGetData.h +59 -0
- plumed/_lib/include/plumed/core/ActionToPutData.h +101 -0
- plumed/_lib/include/plumed/core/ActionWithArguments.h +140 -0
- plumed/_lib/include/plumed/core/ActionWithMatrix.h +87 -0
- plumed/_lib/include/plumed/core/ActionWithValue.h +258 -0
- plumed/_lib/include/plumed/core/ActionWithVector.h +94 -0
- plumed/_lib/include/plumed/core/ActionWithVirtualAtom.h +123 -0
- plumed/_lib/include/plumed/core/CLTool.h +177 -0
- plumed/_lib/include/plumed/core/CLToolMain.h +102 -0
- plumed/_lib/include/plumed/core/CLToolRegister.h +108 -0
- plumed/_lib/include/plumed/core/Colvar.h +115 -0
- plumed/_lib/include/plumed/core/DataPassingObject.h +94 -0
- plumed/_lib/include/plumed/core/DataPassingTools.h +54 -0
- plumed/_lib/include/plumed/core/DomainDecomposition.h +120 -0
- plumed/_lib/include/plumed/core/ExchangePatterns.h +47 -0
- plumed/_lib/include/plumed/core/FlexibleBin.h +63 -0
- plumed/_lib/include/plumed/core/GREX.h +61 -0
- plumed/_lib/include/plumed/core/GenericMolInfo.h +89 -0
- plumed/_lib/include/plumed/core/Group.h +41 -0
- plumed/_lib/include/plumed/core/ModuleMap.h +30 -0
- plumed/_lib/include/plumed/core/ParallelTaskManager.h +1023 -0
- plumed/_lib/include/plumed/core/PbcAction.h +61 -0
- plumed/_lib/include/plumed/core/PlumedMain.h +632 -0
- plumed/_lib/include/plumed/core/PlumedMainInitializer.h +118 -0
- plumed/_lib/include/plumed/core/RegisterBase.h +340 -0
- plumed/_lib/include/plumed/core/TargetDist.h +48 -0
- plumed/_lib/include/plumed/core/Value.h +547 -0
- plumed/_lib/include/plumed/core/WithCmd.h +93 -0
- plumed/_lib/include/plumed/dimred/SMACOF.h +55 -0
- plumed/_lib/include/plumed/drr/DRR.h +383 -0
- plumed/_lib/include/plumed/drr/colvar_UIestimator.h +777 -0
- plumed/_lib/include/plumed/fisst/legendre_rule_fast.h +44 -0
- plumed/_lib/include/plumed/function/Custom.h +54 -0
- plumed/_lib/include/plumed/function/Function.h +85 -0
- plumed/_lib/include/plumed/function/FunctionOfMatrix.h +368 -0
- plumed/_lib/include/plumed/function/FunctionOfScalar.h +135 -0
- plumed/_lib/include/plumed/function/FunctionOfVector.h +296 -0
- plumed/_lib/include/plumed/function/FunctionSetup.h +180 -0
- plumed/_lib/include/plumed/function/FunctionShortcut.h +130 -0
- plumed/_lib/include/plumed/function/FunctionWithSingleArgument.h +165 -0
- plumed/_lib/include/plumed/gridtools/ActionWithGrid.h +43 -0
- plumed/_lib/include/plumed/gridtools/EvaluateGridFunction.h +99 -0
- plumed/_lib/include/plumed/gridtools/FunctionOfGrid.h +295 -0
- plumed/_lib/include/plumed/gridtools/GridCoordinatesObject.h +179 -0
- plumed/_lib/include/plumed/gridtools/GridSearch.h +135 -0
- plumed/_lib/include/plumed/gridtools/Interpolator.h +45 -0
- plumed/_lib/include/plumed/gridtools/KDE.h +455 -0
- plumed/_lib/include/plumed/gridtools/RDF.h +40 -0
- plumed/_lib/include/plumed/gridtools/SumOfKernels.h +219 -0
- plumed/_lib/include/plumed/isdb/MetainferenceBase.h +398 -0
- plumed/_lib/include/plumed/lapack/def_external.h +207 -0
- plumed/_lib/include/plumed/lapack/def_internal.h +388 -0
- plumed/_lib/include/plumed/lapack/lapack.h +899 -0
- plumed/_lib/include/plumed/lapack/lapack_limits.h +79 -0
- plumed/_lib/include/plumed/lapack/real.h +50 -0
- plumed/_lib/include/plumed/lepton/CompiledExpression.h +164 -0
- plumed/_lib/include/plumed/lepton/CustomFunction.h +143 -0
- plumed/_lib/include/plumed/lepton/Exception.h +93 -0
- plumed/_lib/include/plumed/lepton/ExpressionProgram.h +137 -0
- plumed/_lib/include/plumed/lepton/ExpressionTreeNode.h +145 -0
- plumed/_lib/include/plumed/lepton/Lepton.h +85 -0
- plumed/_lib/include/plumed/lepton/MSVC_erfc.h +123 -0
- plumed/_lib/include/plumed/lepton/Operation.h +1302 -0
- plumed/_lib/include/plumed/lepton/ParsedExpression.h +165 -0
- plumed/_lib/include/plumed/lepton/Parser.h +111 -0
- plumed/_lib/include/plumed/lepton/windowsIncludes.h +73 -0
- plumed/_lib/include/plumed/mapping/Path.h +44 -0
- plumed/_lib/include/plumed/mapping/PathProjectionCalculator.h +57 -0
- plumed/_lib/include/plumed/matrixtools/MatrixOperationBase.h +54 -0
- plumed/_lib/include/plumed/matrixtools/MatrixTimesMatrix.h +309 -0
- plumed/_lib/include/plumed/matrixtools/MatrixTimesVectorBase.h +365 -0
- plumed/_lib/include/plumed/matrixtools/OuterProduct.h +238 -0
- plumed/_lib/include/plumed/maze/Core.h +65 -0
- plumed/_lib/include/plumed/maze/Loss.h +86 -0
- plumed/_lib/include/plumed/maze/Member.h +66 -0
- plumed/_lib/include/plumed/maze/Memetic.h +799 -0
- plumed/_lib/include/plumed/maze/Optimizer.h +357 -0
- plumed/_lib/include/plumed/maze/Random_MT.h +156 -0
- plumed/_lib/include/plumed/maze/Tools.h +183 -0
- plumed/_lib/include/plumed/metatomic/vesin.h +188 -0
- plumed/_lib/include/plumed/molfile/Gromacs.h +2013 -0
- plumed/_lib/include/plumed/molfile/endianswap.h +217 -0
- plumed/_lib/include/plumed/molfile/fastio.h +683 -0
- plumed/_lib/include/plumed/molfile/largefiles.h +78 -0
- plumed/_lib/include/plumed/molfile/libmolfile_plugin.h +77 -0
- plumed/_lib/include/plumed/molfile/molfile_plugin.h +1034 -0
- plumed/_lib/include/plumed/molfile/periodic_table.h +248 -0
- plumed/_lib/include/plumed/molfile/readpdb.h +447 -0
- plumed/_lib/include/plumed/molfile/vmdplugin.h +236 -0
- plumed/_lib/include/plumed/multicolvar/MultiColvarShortcuts.h +45 -0
- plumed/_lib/include/plumed/opes/ExpansionCVs.h +79 -0
- plumed/_lib/include/plumed/sasa/Sasa.h +32 -0
- plumed/_lib/include/plumed/secondarystructure/SecondaryStructureBase.h +372 -0
- plumed/_lib/include/plumed/setup/ActionSetup.h +25 -0
- plumed/_lib/include/plumed/small_vector/small_vector.h +6114 -0
- plumed/_lib/include/plumed/symfunc/CoordinationNumbers.h +41 -0
- plumed/_lib/include/plumed/tools/Angle.h +52 -0
- plumed/_lib/include/plumed/tools/AtomDistribution.h +138 -0
- plumed/_lib/include/plumed/tools/AtomNumber.h +152 -0
- plumed/_lib/include/plumed/tools/BiasRepresentation.h +106 -0
- plumed/_lib/include/plumed/tools/BitmaskEnum.h +167 -0
- plumed/_lib/include/plumed/tools/Brent1DRootSearch.h +159 -0
- plumed/_lib/include/plumed/tools/CheckInRange.h +44 -0
- plumed/_lib/include/plumed/tools/Citations.h +74 -0
- plumed/_lib/include/plumed/tools/ColvarOutput.h +118 -0
- plumed/_lib/include/plumed/tools/Communicator.h +316 -0
- plumed/_lib/include/plumed/tools/ConjugateGradient.h +80 -0
- plumed/_lib/include/plumed/tools/DLLoader.h +79 -0
- plumed/_lib/include/plumed/tools/ERMSD.h +73 -0
- plumed/_lib/include/plumed/tools/Exception.h +406 -0
- plumed/_lib/include/plumed/tools/File.h +28 -0
- plumed/_lib/include/plumed/tools/FileBase.h +153 -0
- plumed/_lib/include/plumed/tools/FileTools.h +37 -0
- plumed/_lib/include/plumed/tools/ForwardDecl.h +54 -0
- plumed/_lib/include/plumed/tools/Grid.h +638 -0
- plumed/_lib/include/plumed/tools/HistogramBead.h +136 -0
- plumed/_lib/include/plumed/tools/IFile.h +117 -0
- plumed/_lib/include/plumed/tools/KernelFunctions.h +113 -0
- plumed/_lib/include/plumed/tools/Keywords.h +380 -0
- plumed/_lib/include/plumed/tools/LatticeReduction.h +66 -0
- plumed/_lib/include/plumed/tools/LeptonCall.h +64 -0
- plumed/_lib/include/plumed/tools/LinkCells.h +126 -0
- plumed/_lib/include/plumed/tools/Log.h +41 -0
- plumed/_lib/include/plumed/tools/LoopUnroller.h +163 -0
- plumed/_lib/include/plumed/tools/Matrix.h +721 -0
- plumed/_lib/include/plumed/tools/MatrixSquareBracketsAccess.h +138 -0
- plumed/_lib/include/plumed/tools/MergeVectorTools.h +153 -0
- plumed/_lib/include/plumed/tools/Minimise1DBrent.h +244 -0
- plumed/_lib/include/plumed/tools/MinimiseBase.h +120 -0
- plumed/_lib/include/plumed/tools/MolDataClass.h +51 -0
- plumed/_lib/include/plumed/tools/NeighborList.h +112 -0
- plumed/_lib/include/plumed/tools/OFile.h +286 -0
- plumed/_lib/include/plumed/tools/OpenACC.h +180 -0
- plumed/_lib/include/plumed/tools/OpenMP.h +75 -0
- plumed/_lib/include/plumed/tools/PDB.h +154 -0
- plumed/_lib/include/plumed/tools/Pbc.h +139 -0
- plumed/_lib/include/plumed/tools/PlumedHandle.h +105 -0
- plumed/_lib/include/plumed/tools/RMSD.h +493 -0
- plumed/_lib/include/plumed/tools/Random.h +80 -0
- plumed/_lib/include/plumed/tools/RootFindingBase.h +79 -0
- plumed/_lib/include/plumed/tools/Stopwatch.h +475 -0
- plumed/_lib/include/plumed/tools/Subprocess.h +142 -0
- plumed/_lib/include/plumed/tools/SwitchingFunction.h +208 -0
- plumed/_lib/include/plumed/tools/Tensor.h +724 -0
- plumed/_lib/include/plumed/tools/TokenizedLine.h +123 -0
- plumed/_lib/include/plumed/tools/Tools.h +638 -0
- plumed/_lib/include/plumed/tools/Torsion.h +55 -0
- plumed/_lib/include/plumed/tools/TrajectoryParser.h +118 -0
- plumed/_lib/include/plumed/tools/Tree.h +61 -0
- plumed/_lib/include/plumed/tools/TypesafePtr.h +463 -0
- plumed/_lib/include/plumed/tools/Units.h +167 -0
- plumed/_lib/include/plumed/tools/Vector.h +433 -0
- plumed/_lib/include/plumed/tools/View.h +296 -0
- plumed/_lib/include/plumed/tools/View2D.h +100 -0
- plumed/_lib/include/plumed/tools/h36.h +39 -0
- plumed/_lib/include/plumed/vatom/ActionWithVirtualAtom.h +32 -0
- plumed/_lib/include/plumed/ves/BasisFunctions.h +380 -0
- plumed/_lib/include/plumed/ves/CoeffsBase.h +310 -0
- plumed/_lib/include/plumed/ves/CoeffsMatrix.h +220 -0
- plumed/_lib/include/plumed/ves/CoeffsVector.h +251 -0
- plumed/_lib/include/plumed/ves/FermiSwitchingFunction.h +74 -0
- plumed/_lib/include/plumed/ves/GridIntegrationWeights.h +50 -0
- plumed/_lib/include/plumed/ves/GridLinearInterpolation.h +81 -0
- plumed/_lib/include/plumed/ves/GridProjWeights.h +61 -0
- plumed/_lib/include/plumed/ves/LinearBasisSetExpansion.h +303 -0
- plumed/_lib/include/plumed/ves/Optimizer.h +444 -0
- plumed/_lib/include/plumed/ves/TargetDistModifer.h +53 -0
- plumed/_lib/include/plumed/ves/TargetDistribution.h +266 -0
- plumed/_lib/include/plumed/ves/VesBias.h +545 -0
- plumed/_lib/include/plumed/ves/VesTools.h +142 -0
- plumed/_lib/include/plumed/ves/WaveletGrid.h +75 -0
- plumed/_lib/include/plumed/volumes/ActionVolume.h +268 -0
- plumed/_lib/include/plumed/volumes/VolumeShortcut.h +147 -0
- plumed/_lib/include/plumed/wrapper/Plumed.h +5025 -0
- plumed/_lib/include/plumed/xdrfile/xdrfile.h +663 -0
- plumed/_lib/include/plumed/xdrfile/xdrfile_trr.h +89 -0
- plumed/_lib/include/plumed/xdrfile/xdrfile_xtc.h +90 -0
- plumed/_lib/lib/PythonCVInterface.dylib +0 -0
- plumed/_lib/lib/libplumed.dylib +0 -0
- plumed/_lib/lib/libplumedKernel.dylib +0 -0
- plumed/_lib/lib/libplumedWrapper.a +0 -0
- plumed/_lib/lib/pkgconfig/plumed.pc +13 -0
- plumed/_lib/lib/pkgconfig/plumedInternals.pc +13 -0
- plumed/_lib/lib/pkgconfig/plumedWrapper.pc +13 -0
- plumed/_lib/lib/plumed/fortran/plumed.f90 +879 -0
- plumed/_lib/lib/plumed/fortran/plumed_f08.f90 +2625 -0
- plumed/_lib/lib/plumed/modulefile +69 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.config +43 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/CMakeLists.txt +543 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/CMakeLists.txt.preplumed +540 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/expanded.cpp +1628 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/expanded.cpp.preplumed +1590 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/expanded.h +103 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/expanded.h.preplumed +99 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/sim_util.cpp +2527 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/sim_util.cpp.preplumed +2513 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/legacymdrunoptions.cpp +208 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/legacymdrunoptions.cpp.preplumed +175 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/legacymdrunoptions.h +408 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/legacymdrunoptions.h.preplumed +394 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/md.cpp +2348 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/md.cpp.preplumed +2091 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/minimize.cpp +3573 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/minimize.cpp.preplumed +3495 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/replicaexchange.cpp +1506 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/replicaexchange.cpp.preplumed +1402 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/replicaexchange.h +114 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/replicaexchange.h.preplumed +106 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/rerun.cpp +997 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/rerun.cpp.preplumed +906 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/runner.cpp +2780 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/runner.cpp.preplumed +2738 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp +224 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp.preplumed +222 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.config +43 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/CMakeLists.txt +549 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/CMakeLists.txt.preplumed +546 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/expanded.cpp +1632 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/expanded.cpp.preplumed +1594 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/expanded.h +104 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/expanded.h.preplumed +100 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/sim_util.cpp +2624 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/sim_util.cpp.preplumed +2610 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/legacymdrunoptions.cpp +208 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/legacymdrunoptions.cpp.preplumed +175 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/legacymdrunoptions.h +409 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/legacymdrunoptions.h.preplumed +395 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/md.cpp +2419 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/md.cpp.preplumed +2164 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/minimize.cpp +3546 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/minimize.cpp.preplumed +3468 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/replicaexchange.cpp +1513 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/replicaexchange.cpp.preplumed +1409 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/replicaexchange.h +114 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/replicaexchange.h.preplumed +106 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/rerun.cpp +991 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/rerun.cpp.preplumed +900 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/runner.cpp +2895 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/runner.cpp.preplumed +2849 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp +224 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp.preplumed +222 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/taskassignment/decidegpuusage.cpp +886 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/taskassignment/decidegpuusage.cpp.preplumed +880 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/taskassignment/include/gromacs/taskassignment/decidegpuusage.h +347 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/taskassignment/include/gromacs/taskassignment/decidegpuusage.h.preplumed +345 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.config +43 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/CMakeLists.txt +575 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/CMakeLists.txt.preplumed +572 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/expanded.cpp +1632 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/expanded.cpp.preplumed +1594 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/expanded.h +104 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/expanded.h.preplumed +100 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/sim_util.cpp +2564 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/sim_util.cpp.preplumed +2550 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/legacymdrunoptions.cpp +208 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/legacymdrunoptions.cpp.preplumed +175 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/legacymdrunoptions.h +410 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/legacymdrunoptions.h.preplumed +396 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/md.cpp +2435 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/md.cpp.preplumed +2187 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/minimize.cpp +3592 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/minimize.cpp.preplumed +3514 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/replicaexchange.cpp +1513 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/replicaexchange.cpp.preplumed +1409 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/replicaexchange.h +114 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/replicaexchange.h.preplumed +106 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/rerun.cpp +958 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/rerun.cpp.preplumed +929 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/runner.cpp +2987 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/runner.cpp.preplumed +2941 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp +224 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp.preplumed +222 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/taskassignment/decidegpuusage.cpp +904 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/taskassignment/decidegpuusage.cpp.preplumed +898 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/taskassignment/include/gromacs/taskassignment/decidegpuusage.h +353 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/taskassignment/include/gromacs/taskassignment/decidegpuusage.h.preplumed +351 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.config +39 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/cmake/gmxManagePlumed.cmake +82 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/cmake/gmxManagePlumed.cmake.preplumed +82 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedMDModule.cpp +162 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedMDModule.cpp.preplumed +154 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedOptions.cpp +107 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedOptions.cpp.preplumed +99 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedOptions.h +120 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedOptions.h.preplumed +111 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedforceprovider.cpp +215 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedforceprovider.cpp.preplumed +197 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedforceprovider.h +87 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedforceprovider.h.preplumed +86 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/mdrun/runner.cpp +2971 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/mdrun/runner.cpp.preplumed +2970 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/mdrunutility/mdmodulesnotifiers.h +430 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/mdrunutility/mdmodulesnotifiers.h.preplumed +429 -0
- plumed/_lib/lib/plumed/patches/namd-2.12.config +30 -0
- plumed/_lib/lib/plumed/patches/namd-2.12.diff +267 -0
- plumed/_lib/lib/plumed/patches/namd-2.13.config +30 -0
- plumed/_lib/lib/plumed/patches/namd-2.13.diff +267 -0
- plumed/_lib/lib/plumed/patches/namd-2.14.config +30 -0
- plumed/_lib/lib/plumed/patches/namd-2.14.diff +268 -0
- plumed/_lib/lib/plumed/patches/patch.sh +500 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.config +25 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/forces.f90 +368 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/forces.f90.preplumed +366 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/plugin_forces.f90 +71 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/plugin_forces.f90.preplumed +24 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/plugin_initialization.f90 +62 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/plugin_initialization.f90.preplumed +21 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/pwscf.f90 +189 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/pwscf.f90.preplumed +185 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.config +26 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/forces.f90 +422 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/forces.f90.preplumed +420 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/plugin_ext_forces.f90 +70 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/plugin_ext_forces.f90.preplumed +23 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/plugin_initialization.f90 +62 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/plugin_initialization.f90.preplumed +21 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/run_pwscf.f90 +233 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/run_pwscf.f90.preplumed +230 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.config +28 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/Modules/Makefile +175 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/Modules/Makefile.preplumed +171 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/forces.f90 +486 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/forces.f90.preplumed +484 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/plugin_ext_forces.f90 +74 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/plugin_ext_forces.f90.preplumed +23 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/plugin_initialization.f90 +64 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/plugin_initialization.f90.preplumed +21 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/run_pwscf.f90 +532 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/run_pwscf.f90.preplumed +518 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.config +28 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/Modules/Makefile +249 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/Modules/Makefile.preplumed +244 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/forces.f90 +532 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/forces.f90.preplumed +535 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/plugin_ext_forces.f90 +74 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/plugin_ext_forces.f90.preplumed +23 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/plugin_initialization.f90 +64 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/plugin_initialization.f90.preplumed +21 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/run_pwscf.f90 +569 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/run_pwscf.f90.preplumed +560 -0
- plumed/_lib/lib/plumed/plumed-config +9 -0
- plumed/_lib/lib/plumed/plumed-mklib +9 -0
- plumed/_lib/lib/plumed/plumed-newcv +9 -0
- plumed/_lib/lib/plumed/plumed-partial_tempering +9 -0
- plumed/_lib/lib/plumed/plumed-patch +9 -0
- plumed/_lib/lib/plumed/plumed-runtime +0 -0
- plumed/_lib/lib/plumed/plumed-selector +9 -0
- plumed/_lib/lib/plumed/plumed-vim2html +9 -0
- plumed/_lib/lib/plumed/scripts/config.sh +126 -0
- plumed/_lib/lib/plumed/scripts/mklib.sh +175 -0
- plumed/_lib/lib/plumed/scripts/newcv.sh +26 -0
- plumed/_lib/lib/plumed/scripts/partial_tempering.sh +319 -0
- plumed/_lib/lib/plumed/scripts/patch.sh +4 -0
- plumed/_lib/lib/plumed/scripts/selector.sh +234 -0
- plumed/_lib/lib/plumed/scripts/vim2html.sh +190 -0
- plumed/_lib/lib/plumed/src/colvar/Template.cpp +116 -0
- plumed/_lib/lib/plumed/src/config/compile_options.sh +3 -0
- plumed/_lib/lib/plumed/src/config/config.txt +181 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.cmake +6 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.cmake.runtime +5 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.cmake.shared +5 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.cmake.static +3 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.inc +6 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.inc.runtime +5 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.inc.shared +5 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.inc.static +3 -0
- plumed/_lib/lib/plumed/vim/scripts.vim +6 -0
- plumed/_plumed_core.cpython-311-darwin.so +0 -0
- plumed/_plumed_core.cpython-312-darwin.so +0 -0
- plumed/_plumed_core.cpython-313-darwin.so +0 -0
- plumed/_plumed_core.cpython-314-darwin.so +0 -0
- plumedCommunications.cpython-311-darwin.so +0 -0
- plumedCommunications.cpython-312-darwin.so +0 -0
- plumedCommunications.cpython-313-darwin.so +0 -0
- plumedCommunications.cpython-314-darwin.so +0 -0
- plumedCommunications.pyi +431 -0
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
MANUAL="\
|
|
4
|
+
|
|
5
|
+
Actions (choose one):
|
|
6
|
+
-h, --help
|
|
7
|
+
print this help and exit
|
|
8
|
+
-p, --patch
|
|
9
|
+
patch
|
|
10
|
+
-r, -R, --revert
|
|
11
|
+
revert
|
|
12
|
+
-l, --list-engines
|
|
13
|
+
print a list of available MD engines
|
|
14
|
+
-s, --save
|
|
15
|
+
save, this needs *.preplumed files (*)
|
|
16
|
+
--save-originals
|
|
17
|
+
same as save, but save also original files (*)
|
|
18
|
+
-n NEWENGINE, --new NEWENGINE
|
|
19
|
+
create a new patch named NEWENGINE (*)
|
|
20
|
+
-i, --info
|
|
21
|
+
output information on the patching procedure for a particular code
|
|
22
|
+
Options:
|
|
23
|
+
-e ENGINE, --engine ENGINE
|
|
24
|
+
set MD engine to ENGINE (default: choose interactively)
|
|
25
|
+
-m MODE, --mode MODE (default: shared)
|
|
26
|
+
set link mode to MODE, which can be either static, shared or runtime
|
|
27
|
+
--static
|
|
28
|
+
same as --mode static
|
|
29
|
+
--shared
|
|
30
|
+
same as --mode shared
|
|
31
|
+
--runtime
|
|
32
|
+
same as --mode runtime
|
|
33
|
+
-d FILE, --diff FILE
|
|
34
|
+
set the path to diff file (default: ROOT/patches/ENGINE.diff) (*)
|
|
35
|
+
-q, --quiet
|
|
36
|
+
do not write logging information; useful with -i to print just
|
|
37
|
+
the patching information
|
|
38
|
+
-I, --include
|
|
39
|
+
use include files rather than symbolic links
|
|
40
|
+
-f, --force
|
|
41
|
+
force patching (*)
|
|
42
|
+
|
|
43
|
+
(*) These options are for developers or for testing only. Be sure to know what
|
|
44
|
+
you are doing before you use them.
|
|
45
|
+
"
|
|
46
|
+
|
|
47
|
+
prefix=""
|
|
48
|
+
action=""
|
|
49
|
+
engine=""
|
|
50
|
+
diff=""
|
|
51
|
+
mode=shared
|
|
52
|
+
force=""
|
|
53
|
+
include=""
|
|
54
|
+
newpatch=
|
|
55
|
+
|
|
56
|
+
multiple_actions=
|
|
57
|
+
|
|
58
|
+
otherfiles=
|
|
59
|
+
save_originals=
|
|
60
|
+
quiet=
|
|
61
|
+
mdroot=
|
|
62
|
+
|
|
63
|
+
# default value:
|
|
64
|
+
plumed_ignore_mpi=no
|
|
65
|
+
|
|
66
|
+
for option
|
|
67
|
+
do
|
|
68
|
+
|
|
69
|
+
prefix_option="$prefix$option"
|
|
70
|
+
prefix=""
|
|
71
|
+
|
|
72
|
+
case "$prefix_option" in
|
|
73
|
+
(--help|-h) echo "$MANUAL" ; exit ;;
|
|
74
|
+
(--patch|-p) test -n "$action" && multiple_actions=yes ; action=patch ;;
|
|
75
|
+
(--save|-s) test -n "$action" && multiple_actions=yes ; action=save ;;
|
|
76
|
+
(--save-originals) test -n "$action" && multiple_actions=yes ; action=save ; save_originals=yes ;;
|
|
77
|
+
(--revert|-R|-r) test -n "$action" && multiple_actions=yes ; action=revert ;;
|
|
78
|
+
(--list-engines|-l) test -n "$action" && multiple_actions=yes ; action=list ;;
|
|
79
|
+
(--info|-i) test -n "$action" && multiple_actions=yes ; action=info ;;
|
|
80
|
+
(--new=*) test -n "$action" && multiple_actions=yes ; action=new ; newpatch="${prefix_option#--new=}" ;;
|
|
81
|
+
(--options) test -n "$action" && multiple_actions=yes ; action=options ;;
|
|
82
|
+
(--description) echo "patch an MD engine" ; exit ;;
|
|
83
|
+
(--engine=*) engine="${prefix_option#--engine=}" ;;
|
|
84
|
+
(--mdroot=*) mdroot="${prefix_option#--mdroot=}" ;;
|
|
85
|
+
(--mode=*) mode="${prefix_option#--mode=}" ;;
|
|
86
|
+
(--diff=*) diff="${prefix_option#--diff=}" ;;
|
|
87
|
+
(--engine|-e) prefix="--engine=" ;;
|
|
88
|
+
(--mdroot) prefix="--mdroot" ;;
|
|
89
|
+
(--root=*) prefix="--root="; PLUMED_ROOT="${prefix_option#--root=}" ;;
|
|
90
|
+
(--diff|-d) prefix="--diff=" ;;
|
|
91
|
+
(--mode|-m) prefix="--mode=" ;;
|
|
92
|
+
(--new|-n) prefix="--new=" ;;
|
|
93
|
+
(--static) mode=static ;;
|
|
94
|
+
(--shared) mode=shared ;;
|
|
95
|
+
(--runtime) mode=runtime ;;
|
|
96
|
+
(--force|-f) force=yes ;;
|
|
97
|
+
(--include|-I) include=yes ;;
|
|
98
|
+
(--quiet|-q) quiet=yes ;;
|
|
99
|
+
(*)
|
|
100
|
+
echo "ERROR: Unknown option $prefix_option. Use -h for help."
|
|
101
|
+
exit 1
|
|
102
|
+
esac
|
|
103
|
+
done
|
|
104
|
+
|
|
105
|
+
if [ -n "$mdroot" ] ; then
|
|
106
|
+
if ! cd "$mdroot" ; then
|
|
107
|
+
echo "ERROR: Directory $mdroot does not exist"
|
|
108
|
+
exit 1
|
|
109
|
+
fi
|
|
110
|
+
fi
|
|
111
|
+
|
|
112
|
+
if [ -n "$multiple_actions" ] ; then
|
|
113
|
+
echo "ERROR: Too many actions. -h for help"
|
|
114
|
+
exit 1
|
|
115
|
+
fi
|
|
116
|
+
|
|
117
|
+
if [ -z "$action" ] ; then
|
|
118
|
+
echo "Nothing to do. -h for help"
|
|
119
|
+
exit
|
|
120
|
+
fi
|
|
121
|
+
|
|
122
|
+
if [ "$action" = options ] ; then
|
|
123
|
+
echo "--help -h --patch -p --save -s --save-originals --revert -R -r --list-engines -l --info -i --new --options --description --engine --mdroot --mode --diff --engine -e --mdroot --root --diff -d --mode -m --new -n --static --shared --runtime --force -f --quiet -q --include"
|
|
124
|
+
exit 0
|
|
125
|
+
fi
|
|
126
|
+
|
|
127
|
+
test -n "$quiet" || echo "PLUMED patching tool"
|
|
128
|
+
test -n "$quiet" || echo
|
|
129
|
+
if [ -z "$PLUMED_ROOT" ]
|
|
130
|
+
then
|
|
131
|
+
echo "ERROR: I cannot find PLUMED"
|
|
132
|
+
echo "Please set PLUMED_ROOT environment variable or use --root"
|
|
133
|
+
exit 1
|
|
134
|
+
fi
|
|
135
|
+
if [ ! -d "$PLUMED_ROOT/patches/" ]
|
|
136
|
+
then
|
|
137
|
+
echo "ERROR: cannot find $PLUMED_ROOT/patches/ directory"
|
|
138
|
+
echo "Check your PLUMED_ROOT variable or --root option"
|
|
139
|
+
exit 1
|
|
140
|
+
fi
|
|
141
|
+
|
|
142
|
+
# build MD engines list
|
|
143
|
+
|
|
144
|
+
mdlist=""
|
|
145
|
+
for file in "$PLUMED_ROOT"/patches/*diff
|
|
146
|
+
do
|
|
147
|
+
b="${file##*/}"
|
|
148
|
+
b="${b%.diff}"
|
|
149
|
+
mdlist="$mdlist $b"
|
|
150
|
+
done
|
|
151
|
+
|
|
152
|
+
if [ "$action" == list ]
|
|
153
|
+
then
|
|
154
|
+
echo "Available MD engines:"
|
|
155
|
+
for file in "$PLUMED_ROOT"/patches/*diff
|
|
156
|
+
do
|
|
157
|
+
b="${file##*/}"
|
|
158
|
+
b="${b%.diff}"
|
|
159
|
+
echo " $b"
|
|
160
|
+
done
|
|
161
|
+
exit
|
|
162
|
+
fi
|
|
163
|
+
|
|
164
|
+
if [ "$action" == new ]
|
|
165
|
+
then
|
|
166
|
+
test -n "$quiet" || echo "Creating a new patch"
|
|
167
|
+
if [[ -e "$PLUMED_ROOT"/patches/"$newpatch".diff ]] ; then
|
|
168
|
+
echo "ERROR: patch $newpatch is already defined"
|
|
169
|
+
exit 1
|
|
170
|
+
fi
|
|
171
|
+
touch "$PLUMED_ROOT"/patches/"$newpatch".diff
|
|
172
|
+
test -n "$quiet" || echo "Created file $PLUMED_ROOT/patches/$newpatch.diff"
|
|
173
|
+
test -n "$quiet" || echo "Also consider the possibility of adding a $PLUMED_ROOT/patches/$newpatch.config file"
|
|
174
|
+
exit
|
|
175
|
+
fi
|
|
176
|
+
|
|
177
|
+
if [ -z "$engine" ]
|
|
178
|
+
then
|
|
179
|
+
PS3="Choose the best matching code/version:"
|
|
180
|
+
select engine in $mdlist; do
|
|
181
|
+
if [[ -n "$engine" ]] ; then
|
|
182
|
+
break
|
|
183
|
+
else
|
|
184
|
+
echo "ERROR: choose in the list above or interrupt (^c)"
|
|
185
|
+
fi
|
|
186
|
+
done
|
|
187
|
+
fi
|
|
188
|
+
|
|
189
|
+
if [[ "$action" == patch || "$action" == revert ]]
|
|
190
|
+
then
|
|
191
|
+
found=no
|
|
192
|
+
for engine_try in $mdlist ; do
|
|
193
|
+
if [[ "$engine" == "$engine_try" ]] ; then
|
|
194
|
+
found=yes
|
|
195
|
+
fi
|
|
196
|
+
done
|
|
197
|
+
if [[ "$found" == no ]] ; then
|
|
198
|
+
echo "WARNING: engine $engine not found, I will search for a close match"
|
|
199
|
+
for engine_try in $mdlist ; do
|
|
200
|
+
if [[ "${engine%.*}" == "${engine_try%.*}" ]] ; then
|
|
201
|
+
echo "WARNING: found $engine_try"
|
|
202
|
+
engine="$engine_try"
|
|
203
|
+
fi
|
|
204
|
+
done
|
|
205
|
+
fi
|
|
206
|
+
fi
|
|
207
|
+
|
|
208
|
+
if [ -z "$diff" ]
|
|
209
|
+
then
|
|
210
|
+
diff="$PLUMED_ROOT/patches/${engine}.diff"
|
|
211
|
+
fi
|
|
212
|
+
if [ -z "$config" ]
|
|
213
|
+
then
|
|
214
|
+
config="$PLUMED_ROOT/patches/${engine}.config"
|
|
215
|
+
fi
|
|
216
|
+
if [ -z "$otherfiles" ]
|
|
217
|
+
then
|
|
218
|
+
test -d "$PLUMED_ROOT/patches/${engine}" && otherfiles="$PLUMED_ROOT/patches/${engine}/"
|
|
219
|
+
fi
|
|
220
|
+
|
|
221
|
+
test -n "$quiet" || echo "MD engine: $engine"
|
|
222
|
+
test -n "$quiet" || echo "PLUMED location: $PLUMED_ROOT"
|
|
223
|
+
test -n "$quiet" || echo "diff file: $diff"
|
|
224
|
+
|
|
225
|
+
if [ -f "$config" ]
|
|
226
|
+
then
|
|
227
|
+
test -n "$quiet" || echo "sourcing config file: $config"
|
|
228
|
+
# shellcheck disable=SC1090
|
|
229
|
+
source "$config"
|
|
230
|
+
fi
|
|
231
|
+
|
|
232
|
+
if [ -d "$otherfiles" ]
|
|
233
|
+
then
|
|
234
|
+
test -n "$quiet" || echo "extra files located in: $otherfiles"
|
|
235
|
+
fi
|
|
236
|
+
|
|
237
|
+
case "$mode" in
|
|
238
|
+
(static|shared|runtime) ;;
|
|
239
|
+
(*)
|
|
240
|
+
echo "ERROR: I don't understand mode $mode"
|
|
241
|
+
exit 1
|
|
242
|
+
esac
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
case "$action" in
|
|
246
|
+
(patch)
|
|
247
|
+
if [ ! -e "$diff" ] ; then
|
|
248
|
+
echo "ERROR: MD engine not supported (or misspelled)"
|
|
249
|
+
exit 1
|
|
250
|
+
fi
|
|
251
|
+
if type -t plumed_preliminary_test 1>/dev/null ; then
|
|
252
|
+
if plumed_preliminary_test || [ "$force" ] ; then
|
|
253
|
+
echo >/dev/null
|
|
254
|
+
else
|
|
255
|
+
echo "ERROR: Preliminary test not passed."
|
|
256
|
+
echo "It seems that this is not $engine, or you are in the wrong directory"
|
|
257
|
+
echo "If you are sure about what you are doing, use -f"
|
|
258
|
+
exit 1
|
|
259
|
+
fi
|
|
260
|
+
fi
|
|
261
|
+
if [ -e Plumed.h ] || [ -e Plumed.inc ] || [ -e Plumed.cmake ]
|
|
262
|
+
then
|
|
263
|
+
if ( type -t plumed_before_revert 1>/dev/null || type -t plumed_after_revert 1>/dev/null) && ( type -t plumed_before_patch 1>/dev/null || type -t plumed_after_patch 1>/dev/null)
|
|
264
|
+
then
|
|
265
|
+
echo "ERROR: you have likely already patched, and your patch seems to need to be reverted."
|
|
266
|
+
echo "Revert first (-r)"
|
|
267
|
+
exit 1
|
|
268
|
+
else
|
|
269
|
+
echo "WARNING: you have likely already patched. Assuming that you can patch multiple times and continuing"
|
|
270
|
+
fi
|
|
271
|
+
fi
|
|
272
|
+
if [ ! -f "$PLUMED_ROOT/src/lib/Plumed.inc" ]
|
|
273
|
+
then
|
|
274
|
+
echo "ERROR: cannot find $PLUMED_ROOT/src/lib/Plumed.inc file"
|
|
275
|
+
echo "Compile plumed before patching"
|
|
276
|
+
exit 1
|
|
277
|
+
fi
|
|
278
|
+
if [ ! -f "$PLUMED_ROOT/src/lib/Plumed.cmake.$mode" ]
|
|
279
|
+
then
|
|
280
|
+
echo "ERROR: cannot find $PLUMED_ROOT/src/lib/Plumed.cmake.$mode file"
|
|
281
|
+
echo "Compile a $mode version of plumed before patching, or change patching mode [static|shared|runtime]"
|
|
282
|
+
exit 1
|
|
283
|
+
fi
|
|
284
|
+
if type -t plumed_before_patch 1>/dev/null ; then
|
|
285
|
+
test -n "$quiet" || echo "Executing plumed_before_patch function"
|
|
286
|
+
plumed_before_patch
|
|
287
|
+
fi
|
|
288
|
+
|
|
289
|
+
if [[ -z $PLUMED_PATCH_NO_INCLUDE ]]; then
|
|
290
|
+
#PLUMED_PATCH_NO_INCLUDE is special for programs that have an embedded plumed integration
|
|
291
|
+
#and do not need the Plumed.h, Plumed.inc, and Plumed.cmake files
|
|
292
|
+
if test -n "$include" ; then
|
|
293
|
+
test -n "$quiet" || echo "Including Plumed.h, Plumed.inc, and Plumed.cmake ($mode mode)"
|
|
294
|
+
echo "#include \"$PLUMED_INCLUDEDIR/$PLUMED_PROGRAM_NAME/wrapper/Plumed.h\"" > Plumed.h
|
|
295
|
+
echo "include $PLUMED_ROOT/src/lib/Plumed.inc.$mode" > Plumed.inc
|
|
296
|
+
echo "include($PLUMED_ROOT/src/lib/Plumed.cmake.$mode)" > Plumed.cmake
|
|
297
|
+
else
|
|
298
|
+
test -n "$quiet" || echo "Linking Plumed.h, Plumed.inc, and Plumed.cmake ($mode mode)"
|
|
299
|
+
ln -fs "$PLUMED_INCLUDEDIR/$PLUMED_PROGRAM_NAME/wrapper/Plumed.h" Plumed.h
|
|
300
|
+
ln -fs "$PLUMED_ROOT/src/lib/Plumed.inc.$mode" Plumed.inc
|
|
301
|
+
ln -fs "$PLUMED_ROOT/src/lib/Plumed.cmake.$mode" Plumed.cmake
|
|
302
|
+
fi
|
|
303
|
+
fi
|
|
304
|
+
|
|
305
|
+
if [[ -n $PLUMED_PATCH_EXTRA_FILES ]]; then
|
|
306
|
+
for file in $PLUMED_PATCH_EXTRA_FILES; do
|
|
307
|
+
cp "${diff}/$file" "$file"
|
|
308
|
+
done
|
|
309
|
+
fi
|
|
310
|
+
if [ -d "$diff" ]; then
|
|
311
|
+
test -n "$quiet" || echo "Patching with on-the-fly diff from stored originals"
|
|
312
|
+
PREPLUMED=$(cd "$diff" ; find . -name "*.preplumed" | sort)
|
|
313
|
+
for bckfile in $PREPLUMED ; do
|
|
314
|
+
file="${bckfile%.preplumed}"
|
|
315
|
+
if test -e "$file" ; then
|
|
316
|
+
diff -U 5 "$diff/$bckfile" "$diff/$file" --label="$bckfile" --label="$file" |
|
|
317
|
+
patch -u -l -b -F 5 -N --suffix=.preplumed "$file"
|
|
318
|
+
else
|
|
319
|
+
echo "ERROR: File $file is missing"
|
|
320
|
+
fi
|
|
321
|
+
done
|
|
322
|
+
else
|
|
323
|
+
test -n "$quiet" || echo "Patching with stored diff"
|
|
324
|
+
bash "$diff"
|
|
325
|
+
fi
|
|
326
|
+
|
|
327
|
+
if [ "$PLUMED_IS_INSTALLED" = no ] && [ "$mode" = shared ] ; then
|
|
328
|
+
echo ""
|
|
329
|
+
echo "You are patching in shared mode from a non installed PLUMED"
|
|
330
|
+
echo "Be warned that if you 'make clean' PLUMED the patched code won't work anymore"
|
|
331
|
+
fi
|
|
332
|
+
|
|
333
|
+
if [ "$mode" = runtime ] ; then
|
|
334
|
+
echo ""
|
|
335
|
+
echo "You are patching in runtime mode"
|
|
336
|
+
echo "Be warned that when you will run MD you will use the PLUMED version pointed at"
|
|
337
|
+
echo "by the PLUMED_KERNEL environment variable"
|
|
338
|
+
fi
|
|
339
|
+
|
|
340
|
+
if [ "$plumed_ignore_mpi" = no ] ; then
|
|
341
|
+
echo ""
|
|
342
|
+
if grep -q "D__PLUMED_HAS_MPI=1" "$PLUMED_ROOT"/src/config/compile_options.sh ; then
|
|
343
|
+
echo "PLUMED is compiled with MPI support so you can configure $engine with MPI"
|
|
344
|
+
else
|
|
345
|
+
echo "PLUMED is compiled WITHOUT MPI support so you CANNOT configure $engine with MPI"
|
|
346
|
+
fi
|
|
347
|
+
fi
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
if type -t plumed_after_patch 1>/dev/null ; then
|
|
351
|
+
test -n "$quiet" || echo "Executing plumed_after_patch function"
|
|
352
|
+
plumed_after_patch
|
|
353
|
+
fi
|
|
354
|
+
|
|
355
|
+
;;
|
|
356
|
+
(info)
|
|
357
|
+
if type -t plumed_patch_info 1>/dev/null ; then
|
|
358
|
+
test -n "$quiet" || echo "Executing plumed_patch_info function"
|
|
359
|
+
plumed_patch_info
|
|
360
|
+
else
|
|
361
|
+
echo "No special info for this MD engine"
|
|
362
|
+
fi
|
|
363
|
+
;;
|
|
364
|
+
(save)
|
|
365
|
+
if [[ -z $PLUMED_PATCH_NO_INCLUDE ]]; then
|
|
366
|
+
#PLUMED_PATCH_NO_INCLUDE is special for programs that have an embedded plumed integration
|
|
367
|
+
#and do not need the Plumed.h, Plumed.inc, and Plumed.cmake files
|
|
368
|
+
if [ ! -e Plumed.h ] || [ ! -e Plumed.inc ] || [ ! -e Plumed.cmake ]
|
|
369
|
+
then
|
|
370
|
+
echo "ERROR: I cannot find Plumed.h, Plumed.inc, and Plumed.cmake files. You have likely not patched yet."
|
|
371
|
+
exit 1
|
|
372
|
+
fi
|
|
373
|
+
fi
|
|
374
|
+
PREPLUMED=$(find . -name "*.preplumed" | sort)
|
|
375
|
+
for file in $PLUMED_PREPLUMED_IGNORE;
|
|
376
|
+
do
|
|
377
|
+
PREPLUMED=$(echo "$PREPLUMED" | grep -v "$file")
|
|
378
|
+
done
|
|
379
|
+
|
|
380
|
+
if ! test "$PREPLUMED" ; then
|
|
381
|
+
echo "ERROR: I cannot find any .preplumed file. There is nothing to save."
|
|
382
|
+
exit 1
|
|
383
|
+
fi
|
|
384
|
+
if type -t plumed_preliminary_test 1>/dev/null ; then
|
|
385
|
+
if plumed_preliminary_test || [ "$force" ] ; then
|
|
386
|
+
echo >/dev/null
|
|
387
|
+
else
|
|
388
|
+
echo "ERROR: Preliminary test not passed."
|
|
389
|
+
echo "It seems that this is not $engine, or you are in the wrong directory"
|
|
390
|
+
echo "If you are sure about what you are doing, use -f"
|
|
391
|
+
exit 1
|
|
392
|
+
fi
|
|
393
|
+
fi
|
|
394
|
+
test -n "$quiet" || echo "Saving your changes to $diff"
|
|
395
|
+
test -n "$quiet" || echo "Preplumed files:"
|
|
396
|
+
test -n "$quiet" || echo "$PREPLUMED"
|
|
397
|
+
if [[ -n $PLUMED_PATCH_EXTRA_FILES ]]; then
|
|
398
|
+
echo "Extra files:"
|
|
399
|
+
echo "$PLUMED_PATCH_EXTRA_FILES"
|
|
400
|
+
fi
|
|
401
|
+
|
|
402
|
+
if [ -d "$diff" ] && [ -z "$save_originals" ]; then
|
|
403
|
+
echo "This patch uses the dir format (originals are saved)"
|
|
404
|
+
echo "Are you sure you want to save the single diff?"
|
|
405
|
+
echo "Possible reasons to do it are:"
|
|
406
|
+
echo "* because of licence you do not want to store originals in plumed"
|
|
407
|
+
echo "* you do not want to do a big change on the diff files now"
|
|
408
|
+
answer=
|
|
409
|
+
PS3="Choose:"
|
|
410
|
+
select answer in single-diff originals ; do
|
|
411
|
+
if [[ -n "$answer" ]] ; then
|
|
412
|
+
break
|
|
413
|
+
else
|
|
414
|
+
echo "ERROR: choose in the list above or interrupt (^c)"
|
|
415
|
+
fi
|
|
416
|
+
done
|
|
417
|
+
if [ "$answer" = originals ] ; then
|
|
418
|
+
test -n "$quiet" || echo "saving originals"
|
|
419
|
+
save_originals=yes
|
|
420
|
+
else
|
|
421
|
+
test -n "$quiet" || echo "saving single diff file"
|
|
422
|
+
fi
|
|
423
|
+
fi
|
|
424
|
+
test -e "$diff" && rm -r "$diff"
|
|
425
|
+
for bckfile in $PREPLUMED ; do
|
|
426
|
+
file="${bckfile%.preplumed}"
|
|
427
|
+
if test -e "$file" ; then
|
|
428
|
+
if [ -n "$save_originals" ] ; then
|
|
429
|
+
xx="$diff/$file"
|
|
430
|
+
mkdir -p "${xx%/*}"
|
|
431
|
+
cp "$file" "$diff/$file"
|
|
432
|
+
cp "$bckfile" "$diff/$bckfile"
|
|
433
|
+
else
|
|
434
|
+
{
|
|
435
|
+
echo "patch -u -l -b -F 5 -N --suffix=.preplumed \"${file}\" << \\EOF_EOF"
|
|
436
|
+
diff -U 5 "${bckfile}" "$file" --label="$bckfile" --label="$file"
|
|
437
|
+
echo "EOF_EOF"
|
|
438
|
+
} >> "$diff"
|
|
439
|
+
fi
|
|
440
|
+
else
|
|
441
|
+
echo "ERROR: File $file is missing"
|
|
442
|
+
fi
|
|
443
|
+
done
|
|
444
|
+
if [[ -n $PLUMED_PATCH_EXTRA_FILES ]]; then
|
|
445
|
+
test -n "$quiet" || echo "saving extra files"
|
|
446
|
+
for file in $PLUMED_PATCH_EXTRA_FILES; do
|
|
447
|
+
xx=${diff}/$file
|
|
448
|
+
mkdir -p "${xx%/*}"
|
|
449
|
+
cp "$file" "${diff}/$file"
|
|
450
|
+
done
|
|
451
|
+
fi
|
|
452
|
+
cat <<EOF
|
|
453
|
+
* If you want your patch to perform some arbitrary action before/after
|
|
454
|
+
* patching the diff files, just add a function named
|
|
455
|
+
* plumed_before_patch/plumed_after_patch to the ${diff%diff}config file.
|
|
456
|
+
* Do not forget to also add an equivalent plumed_before_revert/plumed_after_revert
|
|
457
|
+
* function
|
|
458
|
+
EOF
|
|
459
|
+
;;
|
|
460
|
+
(revert)
|
|
461
|
+
if [ ! -e "$diff" ] ; then
|
|
462
|
+
echo "ERROR: MD engine not supported (or misspelled)"
|
|
463
|
+
exit 1
|
|
464
|
+
fi
|
|
465
|
+
if type -t plumed_before_revert 1>/dev/null ; then
|
|
466
|
+
test -n "$quiet" || echo "Executing plumed_before_revert function"
|
|
467
|
+
plumed_before_revert
|
|
468
|
+
fi
|
|
469
|
+
if [ ! -e Plumed.h ] || [ ! -e Plumed.inc ] || [ ! -e Plumed.cmake ]
|
|
470
|
+
then
|
|
471
|
+
echo "WARNING: I cannot find Plumed.h, Plumed.inc, and Plumed.cmake files. You have likely not patched yet."
|
|
472
|
+
else
|
|
473
|
+
test -n "$quiet" || echo "Removing Plumed.h, Plumed.inc, and Plumed.cmake"
|
|
474
|
+
rm Plumed.h Plumed.inc Plumed.cmake
|
|
475
|
+
fi
|
|
476
|
+
PREPLUMED=$(find . -name "*.preplumed")
|
|
477
|
+
if ! test "$PREPLUMED" ; then
|
|
478
|
+
echo "No .preplumed file found, nothing to restore."
|
|
479
|
+
else
|
|
480
|
+
test -n "$quiet" || echo "Reverting changes and touching reverted files"
|
|
481
|
+
for bckfile in $PREPLUMED ; do
|
|
482
|
+
file="${bckfile%.preplumed}"
|
|
483
|
+
mv "$bckfile" "$file"
|
|
484
|
+
touch "$file"
|
|
485
|
+
done
|
|
486
|
+
fi
|
|
487
|
+
if [[ -n $PLUMED_PATCH_EXTRA_FILES ]]; then
|
|
488
|
+
test -n "$quiet" || echo "Removing the extra files"
|
|
489
|
+
for file in $PLUMED_PATCH_EXTRA_FILES; do
|
|
490
|
+
rm -v "$file"
|
|
491
|
+
done
|
|
492
|
+
fi
|
|
493
|
+
if type -t plumed_after_revert 1>/dev/null ; then
|
|
494
|
+
test -n "$quiet" || echo "Executing plumed_after_revert function"
|
|
495
|
+
plumed_after_revert
|
|
496
|
+
fi
|
|
497
|
+
esac
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
function plumed_preliminary_test(){
|
|
4
|
+
# check if the README contains the word ESPRESSO and if qe has been already configured
|
|
5
|
+
grep -q ESPRESSO README 1>/dev/null 2>/dev/null && test -f make.sys
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function plumed_before_patch(){
|
|
9
|
+
cp make.sys make.sys.old
|
|
10
|
+
PWD=`pwd`
|
|
11
|
+
echo "include ${PWD}/Plumed.inc ">make.sys
|
|
12
|
+
awk '{if($1=="LIBS" && $2=="="){print $0" $(PLUMED_LOAD) "}else{print }}' make.sys.old >>make.sys
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function plumed_after_revert(){
|
|
16
|
+
mv make.sys.old make.sys
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function plumed_patch_info(){
|
|
20
|
+
echo ""
|
|
21
|
+
echo "For more information on Quantum Espresso you should visit http://www.quantum-espresso.org"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
plumed_ignore_mpi=yes
|
|
25
|
+
|