Skip to content

Commit

Permalink
Update py.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuche authored Jul 8, 2024
1 parent a48d352 commit 9ba1de6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constitutive/hyperelastic_damage/buche_silberstein/py.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ impl BucheSilberstein
&self.element, &self.factor, &self.grid, &self.normalization, &self.method,
&self.nondimensional_critical_extension, &self.nondimensional_link_stiffness,
&self.number_of_links, &self.swelling_ratio,
&stretch, &maximum_previous_stretch
stretch, &maximum_previous_stretch
)
}).collect::<Vec<[f64; 2]>>();
let results_1 = results.iter().map(|result| result[0]).collect();
let results_2 = results.iter().map(|result| result[1]).collect();
(PyArray::from_vec(py, results_1).to_dyn(), PyArray::from_vec(py, results_2).to_dyn())
}
}
}

0 comments on commit 9ba1de6

Please sign in to comment.