Skip to content

Instantly share code, notes, and snippets.

View g2boojum's full-sized avatar

Grant Goodyear g2boojum

View GitHub Profile
@g2boojum
g2boojum / totalspectrum.c
Created January 26, 2022 23:32
Fast line-by-line C processing
#include <stdio.h>
#include <stdlib.h>
enum { num_channels = 4096 };
int main(int argc, char* argv[]) {
if (argc != 3) {
printf("Usage: %s gammafile outfile\n", argv[0]);
exit(1);
}
@g2boojum
g2boojum / gist:93cc561c97f823046b3feb2a52eaf3c6
Last active November 1, 2021 19:59
2021 MCNP symposium recap

LANL hosted a virtual "1st annual" MCNP user symposium (https://custom.cvent.com/184F82DD73C94B5DA7BCE5DA8F257665/files/event/248345be235644959142f8f72c74ef71/57477a4c75d948428577eaecc61faacd.pdf) . There were 500+ attendees, and ~75 presentations (with 1/3 given by folks from LANL). Here's what Andreas Vogt and I found most interesting and applicable for the nuclear well-logging community:

  • MCNP 6.3 should be coming out this fall
    • New theory and user manuals
    • Will require a Fortran 2018-compliant compiler. Current Intel and gfortran compilers work. Flang (the llvm fortran compiler) does not, nor does the Mac llvm-based compiler.
    • The source code build system now uses cmake. I don't particularly love cmake, but it's better than hand-editing Makefiles, which was the old way to do things.
  • HDF5 support (specifically HDF5 version 1.10) has been added, so there are now HDF5 output, mctal, meshtal, and EEOUT files, and I think MCNP can use an HDF5 input file, too. One significant advantage of HDF5 is
### Keybase proof
I hereby claim:
* I am g2boojum on github.
* I am g2boojum (https://keybase.io/g2boojum) on keybase.
* I have a public key ASCuooM8YcNtDr4qyNZ-vgtr4kyhK7br4qRma2Oz7TBI_go
To claim this, I am signing this object: