-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Managing CoolProp interface dependencies - Tree structure #8
Comments
I'm not much into this kind of technical details, but I would favour approach n. 3. Having CoolProp as a submodule or subtree of ExternalMedia is wrong from a logical point of view. It would be like having the United States as a province of Italy 😄 Furthermore, if in the future people want to add more solvers in a clean way, 3. seems much better than 1. and 2., otherwise we end up also adding China, India etc. as other provinces of Italy... Ideally, it should be possible for anyone to choose which solvers should be actually compiled into the library, possibly including their private own one, and this seems to be easier to do with 3.. We will provide pre-compiled libraries with RefProp and CoolProp support, but that's by no means exhaustive of what you can do with this library. |
I have no strong feelings in either direction (@casella's reasoning above seems sound, though). I only caution that many of the git submodule problems have stemmed from things since fixed in current-ish git versions, so I would de-emphasize the weight of old articles on the internet. |
I update Build-CMake.sh Compilation seems to work fine pointing to v6.1.0 tag of CoolProp |
Hello, So... I think it worth it to make it clean and good documentation on how it works and focus on OSS. |
Fine I'll have a look at it. I may reach out at some point and ask for a review of my changes - I hope that is OK. |
I've been playing around with the idea of using the pre-compiled CoolProp dll, instead of compiling it from source. This makes the project management a lot easier. I made some proof-of-concept experiments and it seems to work fine. @jowr, I should have time to work on this during or immediately after the Christmas break, maybe on a branch. What do you think? |
See discussion here |
This has been foxed for v3.3.0 |
The goal of ExternalMedia library is to provide a framework for interfacing external codes computing fluid properties to Modelica.Media-compatible component models.
The dependency will follow the recommendation stated by @casella and @adrpo : Download the sources and build the dependency
How to integrate CoolProp in ExternalMedia project:
As a submodule in git
I don't know how submodule works in git but many blogs seems to say that is a really difficult path to make it work simply. I might be wrong.
git subtree
Alternative to git submodules : git subtree
External CMake project (ExternalProject_Add).
This how to explain a simple integration: External CMake Project
For me, the third solution is easier to maintain and understand.
What do you think ? What do I miss ?
The text was updated successfully, but these errors were encountered: