I think we all agree that OPM is (and in my opinions should remain) more on 
libraries and core functionality, and less on end user applications.



I hope we can cater to both, and today we really do. I believe Resinsight and 
the upscaling codes are firmly positioned in the end-user application category. 
For the reservoir simulation part it is different, and I do believe you are 
right, we should design for making it easy to use as libraries and core 
functionality. At the same time, through the file format, we currently work 
hard at making an end-user reservoir simulator. Actually, I believe the latter 
is necessary to enable the former. That is, I am not sure we can rely on others 
providing the end user application part.



To be honest I think I would have had to resort to Andreas suggestion myself – 
is this the time when I *really* should understand how pkg-config works?



It seems to me that it is not that bad. With some guidance (on the wiki?) it 
should be possible to ease the process of adding a new application without too 
much effort. Whichever way we do it, I believe any solution will include the 
following two steps:

-put #include statements in the new source file pointing to relevant 
opm-functionality

-tell the linker where to find the libraries

The second can be eased by installing opm(and dune) trough packages or on 
standard system locations. Even without that, simply compiling opm-modules in 
neighbouring folders, the following recipe should suffice:

-put your source file in the examples folder of the appropriate opm-module

-add #include statements for what you want to use, look at the other files in 
/examples if uncertain

-add your file to the CMakeLists_files.cmake for the opm-module as explained at 
the top of the file

-compile the opm-module



I am not sure how much easier it is feasible to make it. Organizing the 
repositories better maybe?



Cheers,

Alf


-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you
_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm

Reply via email to