The OASIS Coupler Forum

  HOME

How to determine OASIS3-MCT version?

Up to Installation and compilation

Posted by Anonymous at April 8 2022

We want to customize our model build workflow based on which OASIS3-MCT version is available on the system. Is there a way to introspect the OASIS3-MCT version after it has been built?

Posted by Anonymous at April 12 2022

Hello,
No this does not exist in OASIS3-MCT, sorry about this. The only place where the version number exists in the User Guide in  /doc/oasis3mct_UserGuide.tex. Of course, if you are using git, then you can query the hash and other information (like date) but I think this is not what you are looking for.
Let us know how important this is for you and we'll see if we decide to add this possibility.
  regards,
 Sophie.

Posted by Anonymous at April 14 2022

Hi Sophie,

It would greatly simplify packaging OASIS3-MCT for developers. If the required include and linker flags could also be introspected, that would be the best.

I suggest adding a final step in the OASIS3-MCT Makefile to generate a `.pc` file. This file can be read by `pkg-config` which is a common UNIX tool for reading library metadata. Here are some resources to get started:

* Guide to pkg-config 
* .pc file template
https://gist.githubusercontent.com/scivision/ed109f7a1256141b3e821e2a82ec17f1/raw/2d79af124ed15c210dd73b793b8be4abefa21ae7/my_package.pc.in
* How to generate .pc file in Makefile https://www.linuxquestions.org/questions/programming-9/generating-pkg-config-file-in-makefile-4175683854

Best Regards,
Paul

Posted by Anonymous at April 26 2022

Thanks Paul, we opened two tickets, one on the oasis version and the other on pkg-config, and we'll consider your suggestions!
  Regards,
  Sophie
Reply to this