mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-05 01:55:47 +00:00
@ -248,12 +248,12 @@ int main(int argc, char *argv[])
|
|||||||
_atom_info = (atom_info *) malloc (8 * _system_info.num_atoms * sizeof (atom_info));
|
_atom_info = (atom_info *) malloc (8 * _system_info.num_atoms * sizeof (atom_info));
|
||||||
if (mode == 2)
|
if (mode == 2)
|
||||||
{
|
{
|
||||||
i = (_radf_info.r_max - _radf_info.r_min) / _radf_info.r_step;
|
i = 1 + (_radf_info.r_max - _radf_info.r_min) / _radf_info.r_step;
|
||||||
j = (_radf_info.ang_max - _radf_info.ang_min) / _radf_info.ang_step;
|
j = 1 + (_radf_info.ang_max - _radf_info.ang_min) / _radf_info.ang_step;
|
||||||
i *= j;
|
i *= j;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
i = (_radf_info.r_max - _radf_info.r_min) / _radf_info.r_step;
|
i = 1 + (_radf_info.r_max - _radf_info.r_min) / _radf_info.r_step;
|
||||||
radf = (int *) malloc (i * sizeof (int));
|
radf = (int *) malloc (i * sizeof (int));
|
||||||
for (j=0; j<i; j++)
|
for (j=0; j<i; j++)
|
||||||
radf[j] = 0;
|
radf[j] = 0;
|
||||||
|
@ -27,7 +27,7 @@ def defineType(file):
|
|||||||
if (line[0] == '@') and (line.find("title") > -1):
|
if (line[0] == '@') and (line.find("title") > -1):
|
||||||
if (line.find("RMSD") > -1):
|
if (line.find("RMSD") > -1):
|
||||||
type = "rmsd"
|
type = "rmsd"
|
||||||
elif (line.find("distance") > -1):
|
elif (line.find("istance") > -1):
|
||||||
type = "dist"
|
type = "dist"
|
||||||
elif (line.find("Angle") > -1):
|
elif (line.find("Angle") > -1):
|
||||||
type = "angl"
|
type = "angl"
|
||||||
@ -230,9 +230,9 @@ if __name__ == "__main__":
|
|||||||
help = 'Do not create *.csv file', action = 'store_true', default = False)
|
help = 'Do not create *.csv file', action = 'store_true', default = False)
|
||||||
parser.add_argument('-nq', '--noqti', dest = 'noqti',
|
parser.add_argument('-nq', '--noqti', dest = 'noqti',
|
||||||
help = 'Do not create *.qti file', action = 'store_true', default = False)
|
help = 'Do not create *.qti file', action = 'store_true', default = False)
|
||||||
parser.add_argument('-t', '--time', dest = 'time',
|
parser.add_argument('-t', '--time', dest = 'time', type = int,
|
||||||
help = 'Averaging time', action = 'store', default = 1)
|
help = 'Averaging time', action = 'store', default = 1)
|
||||||
parser.add_argument('-s', '--step', dest = 'step',
|
parser.add_argument('-s', '--step', dest = 'step', type = float,
|
||||||
help = 'Time step', action = 'store', default = 1.0)
|
help = 'Time step', action = 'store', default = 1.0)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user