nakib / elphbolt

A solver for the coupled and decoupled electron and phonon Boltzmann transport equations.
GNU General Public License v3.0
37 stars 24 forks source link

Improved input parser #89

Open nakib opened 1 year ago

nakib commented 1 year ago

The current input file parser based on namelist requires an intermediate variable before reading into the fields of a data type. Need a better method.

One option could be to internally generate an internal_input.nml file where a self% is prepended to every Namelist member. After this step, this file can be directly read into self%<member>.

nakib commented 1 year ago

I think the associate construct can be used to remove the redundant declarations currently done in all the nml style input parsers.

nakib commented 1 year ago

This would definitely be more elegant than the first idea and is also in the functional style (like let in Lisp).

nakib commented 7 months ago

After exhausting all functional and object oriented options, I think the following is the way to go: https://github.com/nakib/nml4types/

nakib commented 6 months ago

But the above still won't work for types containing allocatable components.