Skip to content

Commit 412d034

Browse files
committed
Update AEvents with changed API and slightly faster map
Mark release 0.4.0
1 parent 6c5e8c0 commit 412d034

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aetherus"
3-
version = "0.4.0-beta"
3+
version = "0.4.0"
44
authors = ["Freddy Wordingham <f.wordingham@exeter.ac.uk>", "Sam Morrell <s.a.f.morrell@exeter.ac.uk>", "Cristian Bourceanu <v.c.bourceanu@smd.ed.ac.uk>"]
55
edition = "2021"
66
description = "Physics simulation library and binaries"
@@ -67,7 +67,7 @@ thiserror = "2.0.17"
6767
log = "0.4.29"
6868
rand_distr = "0.6.0"
6969
env_logger = "0.11.9"
70-
aetherus-events = { git = "https://github.com/aetherus-wg/aetherus-events", rev="e66b5c1", version = "^0.1.9" }
70+
aetherus-events = { git = "https://github.com/aetherus-wg/aetherus-events", tag ="0.2.3", version = "^0.2.3" }
7171

7272
[dev-dependencies]
7373
tempfile = "3.2.*"

src/phys/photon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Photon particle.
22
use crate::{access, clone, geom::Ray};
33

4-
use aetherus_events::ledger::Uid;
4+
use aetherus_events::Uid;
55

66
#[cfg(feature = "mpi")]
77
use crate::math::{Dir3, Point3};

src/sim/engine/engines/standard.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ pub fn standard<R: Rng>(
101101
// FIXME: next_seq_id needed here only for PhotonCollector, which needs the updated
102102
// Uid before it can store the photon data. How to solve this RAW hazard?
103103
let next_seq_id = ledger.lock().expect("Can't lock Ledger").get_next_seq_id(&phot.uid());
104-
let prev_env = env.clone();
105104
let event_id = surface(&mut rng, &hit, &mut phot, &mut env, data, next_seq_id);
106105
phot.ray_mut().travel(bump_dist);
107106
if input.sett.uid_tracked() == Some(true) && event_id.event_type != EventType::None {

src/sim/run.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ use rand::rng;
77
use rayon::prelude::*;
88
use std::sync::{Arc, Mutex};
99

10-
use aetherus_events::{EventId, SrcId, emission::Emission, ledger::Ledger};
10+
use aetherus_events::prelude::*;
11+
use aetherus_events::events::Emission;
1112

1213
/// Run a multi-threaded MCRT simulation.
1314
/// # Errors

src/sim/surface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{
66
phys::{Crossing, Local, Photon},
77
sim::Attribute,
88
};
9-
use aetherus_events::{EventId, EventType, SrcId, ledger::Uid, mcrt_event};
9+
use aetherus_events::prelude::*;
1010
use rand::{Rng, RngExt};
1111

1212
/// Handle a surface collision.

0 commit comments

Comments
 (0)