Complete list: https://github.com/root-project/root/pulls?q=author%3Amxxo+created%3A%3C2020-09-01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SLURM_ARRAY_TASK_ID will range from 1 to 10 | |
#SBATCH --array=1-10 | |
# adjust time limits as needed | |
#SBATCH --time=02:00:00 | |
# run the user code using the input.egsinp file on ten cores | |
# note: * each run will use a different set of initial random numbers | |
# * the -s flag forces EGSnrc to use a simple job control object (no locking) | |
user_code -i input.egsinp -p pegs_data.pegs4dat -b -P 10 -j $SLURM_ARRAY_TASK_ID -s | |
# this will result in 10 egsdat files, which must be combined manually afterwards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ICRP 145 mesh-type computational reference phantom (MCRP) node and element parser | |
// -- Max Orok 2020 | |
// | |
// g++ -std=c++11 -Wall -Wextra -O2 -o mrcp-parser mrcp-parser.cpp | |
#include "msh_parser.h" | |
#include <fstream> | |
#include <sstream> | |
#include <stdexcept> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(unknown_lints)] | |
#[track_caller] | |
pub fn f() { | |
// ... dreaming about IO in const fns | |
// * https://github.com/rust-lang/const-eval/issues/44 | |
// * could maybe use include_bytes | |
let loc = std::panic::Location::caller(); | |
let contents = std::fs::read_to_string(loc.file()).unwrap(); |