Open gtribello opened 2 weeks ago
@gtribello I think this is useful, but I would not use PDB format. In PLUMED we only use PDBs when we have to provide coordinates (for RMSD) or names / residues (for MOLINFO). Here it's just reading a vector, I would save the user from the potential issues with misformatted files.
Why not using the same format that you can now write (with DUMPMASSCHARGE) and read (with driver --mcfile
)?
In addition, I would call the action READMASSCHARGE
for consistency.
If you like the PDB, we can add the option of writing a PDB with charges in DUMPMASSCHARGE and reading it in READMASSCHARGE, but I am not sure it is a good idea.
Thanks for these comments @GiovanniBussi. I have changed the name as you suggest now and have also added the option to read either a pdb file or the mass charge file. This is the same as what we allow with driver so I think it makes more sense.
Thanks again.
This is the same as what we allow with driver True, I didn't remember this... Thanks!
Description
While creating all the stuff for the test centre I realised that some codes (I-Pi) don't have any mechanism for passing masses and charges of atoms to PLUMED. Furthermore, I'm told it would be difficult to add the code to pass masses and charges to PLUMED using these codes. I thus created this action that allows you to set the values of the masses and charges from the PLUMED input. To set the masses and charges you just give the action a PDB file with the masses and charges in the beta and occupancy columns in the usual way.
Target release
I would like my code to appear in release 2.10
Type of contribution
Copyright
COPYRIGHT
file with the correct license information. Code should be released under an open source license. I also used the commandcd src && ./header.sh mymodulename
in order to make sure the headers of the module are correct.Tests