OPM / opm-output

This repository is intended for output-writer functionality for the flow simulators in OPM
http://www.opm-project.org
GNU General Public License v3.0
3 stars 21 forks source link

flow_ebos default output directory #173

Closed nairr closed 7 years ago

nairr commented 7 years ago

I observe that when using the current build of OPM and with default settings the flow_ebos output files(.PRT, .UNRST etc) are written out within the current/working directory instead of directory containing the .DATA file

atgeirr commented 7 years ago

That sounds sensible to me, do you find it surprising or wrong?

nairr commented 7 years ago

Its of course open to discussion, but as a user I would prefer to have the output files connected to a particular data file to be present in the directory containing the .DATA file, so as to avoid confusion (when having decks with similar names etc.) and please correct me if I am wrong, but I believe it also the convention that Eclipse follows.

bska commented 7 years ago

but I believe [output in same directory as .DATA file is] also the convention that Eclipse follows.

It is. ECLIPSE uses the directory containing the simulation deck (i.e., the .DATA file) as its working directory and writes all of its output to that directory. I think I'd like an option of putting the output someplace else in a particular run, but the default should be to write the output to the .DATA directory.

andlaus commented 7 years ago

stupid question: won't you get the behaviour which you want by simply starting the simulator from the same directory that contains the data file, i.e. by starting the simulator using (cd $DATA_DIR; flow_ebos $FOO.DATA) instead of flow_ebos $DATA_DIR/$FOO.DATA? (IMO, placing the output files into the current working directory is somewhat simpler to implement, less surprising if you're not coming from the ECL world and more versatile.)