castep_param_io/param/density_mixing_params/
mix_history_length.rs

1use castep_param_derive::KeywordDisplay;
2use serde::{Deserialize, Serialize};
3
4/// This keyword determines the maximum number of densities to store in the
5/// history used during the density mixing procedure.
6/// # Default
7/// 7
8/// Example
9/// `MIX_HISTORY_LENGTH : 5`
10#[derive(
11    Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize, KeywordDisplay,
12)]
13#[keyword_display(field="MIX_HISTORY_LENGTH", from=u32,value=u32, default_value=7)]
14pub struct MixHistoryLength(u32);