mdsim/main.nim

19 lines
418 B
Nim
Raw Permalink Normal View History

import particle
import parsexyz
import forces
2022-12-07 18:51:22 +01:00
import strformat
import os
2022-12-07 18:51:22 +01:00
# what's the input file name?
if paramCount() != 2:
echo "Usage: ./main inputfile.xyz settingName"
quit 1
if not fileExists("ffs.toml"):
echo "Error: input.toml doesn't exist"
quit 2
let xyzPath = paramStr(1)
let ffName = paramStr(2)
echo &"Using {xyzPath} as input, {ffName} as calculation settings"
2022-12-07 18:51:22 +01:00
2023-04-15 15:59:24 +02:00
simulate(ffName, xyzPath)