make test input platform independent with is_os() variable function

This commit is contained in:
Axel Kohlmeyer
2022-08-06 21:44:49 -04:00
parent 4ac74a4153
commit e6b47b0b4d
2 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,8 @@ pre_commands: ! |
variable units index real
variable newton_pair delete
variable newton_pair index on
shell cp ${input_dir}/table_CG_CG_CG.txt .
if $(is_os(^Windows)) then "variable copycmd string copy" else "variable copycmd string cp"
shell ${copycmd} ${input_dir}/table_CG_CG_CG.txt .
post_commands: ! ""
input_file: in.metal
pair_style: hybrid/overlay table linear 1200 sw/angle/table

View File

@ -10,8 +10,9 @@ pre_commands: ! |
variable units index real
variable newton_pair delete
variable newton_pair index on
shell cp ${input_dir}/1-1-1.table .
shell cp ${input_dir}/1-1-2.table .
if $(is_os(^Windows)) then "variable copycmd string copy" else "variable copycmd string cp"
shell ${copycmd} ${input_dir}/1-1-1.table .
shell ${copycmd} ${input_dir}/1-1-2.table .
post_commands: ! ""
input_file: in.metal
pair_style: hybrid/overlay table linear 1200 threebody/table