castep_param_io/param/general/
run_time.rs

1
2use castep_param_derive::KeywordDisplay;
3use serde::{Deserialize, Serialize};
4
5
6/// This keyword specifies the maximum run time for the job, in seconds. If the RUN_TIME is greater than zero, the job will exit cleanly before the specified time has elapsed, leaving as little unused time as possible.
7/// If RUN_TIME is less than or equal to zero, no time limit will be imposed on the run.
8/// # Default
9/// 0
10/// # Example
11/// `RUN_TIME : 360`
12#[derive(
13    Debug,
14    Clone,
15    Copy,
16    Hash,
17    Serialize,
18    Deserialize,
19    Default,
20    PartialEq,
21    Eq,
22    PartialOrd,
23    Ord,
24    KeywordDisplay,
25)]
26#[keyword_display(field="RUN_TIME",from=i64,value=i64)]
27pub struct RunTime(i64);