Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 976 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 976 Bytes

spectral_rs Build Status

A rust based relativistic pseudo-spectral PIC method

Unmagnetized shock

This is still very much a work in progress but can correctly model unmagnetized shocks

To run install rust https://www.rust-lang.org/tools/install

clone this repo. cd to the main directory (one with config.toml). Edit config.toml as you see fit, and then

cargo run --release

By default the code is in single precision, but if you want it to run in double precision

cargo run --release --features dprec

I also memory "unsafe" code but provide runtime assertions that prove memory safety is not violated. If you don't want have that very small runtime overhead you can run it as cargo run --release --features "dprec unchecked"