File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ impl Model for GenericModel<'_> {
102102 }
103103}
104104
105- #[ derive( Default ) ]
106105struct LotkaVolterra ;
107106
108107impl Model for LotkaVolterra {
@@ -112,7 +111,6 @@ impl Model for LotkaVolterra {
112111 }
113112}
114113
115- #[ derive( Default ) ]
116114struct AlphaPinene ;
117115
118116impl Model for AlphaPinene {
@@ -139,8 +137,8 @@ impl Model for AlphaPinene {
139137
140138pub fn eval_model_fun ( model : & str , ode_expr : & OdeExpr ) -> Box < dyn Model > {
141139 match model {
142- "lotka-volterra" => Box :: new ( LotkaVolterra :: default ( ) ) ,
143- "alpha-pinene" | "α-pinene" => Box :: new ( AlphaPinene :: default ( ) ) ,
140+ "lotka-volterra" => Box :: new ( LotkaVolterra ) ,
141+ "alpha-pinene" | "α-pinene" => Box :: new ( AlphaPinene ) ,
144142 _ => Box :: new ( GenericModel :: new ( ode_expr) )
145143 }
146144}
You can’t perform that action at this time.
0 commit comments