Skip to content

Commit 4090d17

Browse files
committed
Changed default number of weak collisions to 0 from 3 to avoid breaking sputtering when Z2>>Z1
1 parent 8267220 commit 4090d17

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "RustBCA"
3-
version = "2.0.0"
3+
version = "2.0.1"
44
default-run = "RustBCA"
55
authors = ["Jon Drobny <[email protected]>", "Jon Drobny <[email protected]>"]
66
edition = "2018"

src/input.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ fn three() -> usize {
141141
3
142142
}
143143

144+
fn zero_usize() -> usize{
145+
0
146+
}
147+
144148
///This helper function is a workaround to issue #368 in serde
145149
fn default_buffer_size() -> usize {
146150
8192
@@ -221,7 +225,7 @@ impl Options {
221225
track_recoils: track_recoils,
222226
track_recoil_trajectories: false,
223227
write_buffer_size: default_buffer_size(),
224-
weak_collision_order: three(),
228+
weak_collision_order: zero_usize(),
225229
suppress_deep_recoils: false,
226230
high_energy_free_flight_paths: false,
227231
electronic_stopping_mode: default_electronic_stopping_mode(),
@@ -302,7 +306,7 @@ impl Options {
302306
track_recoils: false,
303307
track_recoil_trajectories: false,
304308
write_buffer_size: default_buffer_size(),
305-
weak_collision_order: three(),
309+
weak_collision_order: zero_usize(),
306310
suppress_deep_recoils: false,
307311
high_energy_free_flight_paths: false,
308312
electronic_stopping_mode: default_electronic_stopping_mode(),

0 commit comments

Comments
 (0)