2

Access eQuest macro processor via command line?

I have some BDL input files (*.INP) with heavy macro usage (##include, ##set1). When I load one in eQuest into a new project, it runs the macro processor and saves the pre-processed INP file with my new project name. Then I can see how all the macros evaluated.

I want to know if there is a way to achieve this same effect via command line or DLL calls, that is, without opening eQuest GUI to create a new project. This way I can check how my macros were processed, edit the pre-processed BDL code if I like, and run the file with DOE2 command line.

To clarify the original question, I want the result to be a new INP file that can be opened directly with eQuest.

Any ideas?

simular's avatar
71
simular
asked 2019-03-15 14:49:41 -0500, updated 2019-04-09 14:43:37 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

3

Yes, download DOE-2.2 or DOE-2.3 from http://doe2.com/DOE2/index.html and follow the installation and execution instructions.

JasonGlazer's avatar
6.8k
JasonGlazer
answered 2019-03-18 06:58:09 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for the link!

simular's avatar simular (2019-03-28 19:38:05 -0500) edit
add a comment see more comments
1

After focusing on the *.BDL output files, I started to notice a file fort.22. This looks similar ... I found there was a statement like this halfway through my BDL:

##write

Evidently, I needed to put this at the entry point to my program, ie. the beginning of the INP file. The fort.22 file has a clean version of the BDL output file. Aside from line numbers in the first few columns, I think is exactly what I'm looking for.

On second look: This is still not correct, or perhaps there is a bug with DOEBDL. My BDL output file will show keyword expressions, a la {...}. However, in the fort.22 output file, these expressions are replaced with just the open curly brace, {, with no inner content. I also get snippets of library in unexpected places.

simular's avatar
71
simular
answered 2019-03-28 19:37:39 -0500, updated 2019-04-08 20:07:38 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments