2015-12-19 02:35:13 +01:00
|
|
|
|
|
|
|
let run ezfio_filename =
|
2016-01-18 20:17:37 +01:00
|
|
|
Qputils.set_ezfio_filename ezfio_filename;
|
2015-12-19 02:35:13 +01:00
|
|
|
Status.write Status.Stopping
|
|
|
|
|
2019-07-22 12:19:12 +02:00
|
|
|
let command () =
|
2019-07-22 11:31:16 +02:00
|
|
|
let open Command_line in
|
|
|
|
begin
|
|
|
|
set_header_doc (Sys.argv.(0) ^ " - QMC=Chem command");
|
|
|
|
set_description_doc "Stop a running calculation";
|
|
|
|
[ anonymous "EZFIO_DIR" Mandatory "EZFIO directory" ]
|
|
|
|
|> set_specs
|
|
|
|
end;
|
2015-12-19 02:35:13 +01:00
|
|
|
|
2019-07-22 11:31:16 +02:00
|
|
|
let ezfio_file =
|
|
|
|
match Command_line.anon_args () with
|
|
|
|
| ezfio_file :: [] -> ezfio_file
|
|
|
|
| _ -> (Command_line.help () ; failwith "Inconsistent command line")
|
|
|
|
in
|
2015-12-19 02:35:13 +01:00
|
|
|
|
2019-07-22 11:31:16 +02:00
|
|
|
run ezfio_file
|
2015-12-19 02:35:13 +01:00
|
|
|
|
|
|
|
|