svalinn / r2s-act

Rigorous 2 Step Activation Workflow
4 stars 7 forks source link

Pass arbitrary mesh file (.h5m, .vtk) to MCNP's source.F90 #41

Open erelson opened 11 years ago

erelson commented 11 years ago

Need inspiration for the best way to do this in Fortran+MCNP.

erelson commented 11 years ago

The current approach is that source.h5m is the hardcoded file that is looked for.

The most practical way to stay within source.F90 is to add a (partial) parser for the r2s.cfg files. This would also be the solution for optional parameters, a la #45. This is probably a task for post-thesis/summer work, though.

gonuke commented 11 years ago

You could hack the MCNP command line file reading stuff to optionally provide another filename on the command line. We do it for gcad, lcad, fcad...

erelson commented 11 years ago

I had been approaching this with the goal of keeping the portability of (and ability to quickly swap out) source.F90 files in mind. I will look into it at some point, though.