-
Notifications
You must be signed in to change notification settings - Fork 19
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
Unable to use backward mapping models created by index sets #73
Comments
Pavel, I will have a look at your branch later today. In the mean time, have you remembered to add: indices={ to your surrogate function (CFunction)? Regards, Sigve On 11 February 2016 at 10:59, Pavel Ferkl [email protected] wrote:
|
Hello Sigve, |
Pavel, I am having problems compiling “Solubility” (in your branch, Henrik’s Have you seen this error? [ 2%] Building Fortran object
Error: 'a' argument of 'dabs' intrinsic at (1) must be double precision With regards to your problem I believe I have identified the cause. It is Regards, Sigve On 11 February 2016 at 14:12, Pavel Ferkl [email protected] wrote:
|
Sigve, |
A quick solution for you to fix the problem is to do the following: Replace line 206 in model.c With the following line: if(PyErr_ExceptionMatches(modena_DoesNotExist) || The surrogate function will still be compiled into the “launcher” directory, but I will work on that!I am trying to figure out the best way to compile your complex Sigve On 12 February 2016 at 14:36, Pavel Ferkl [email protected] wrote:
|
I am afraid I was lying to you about a “quick fix”. It will fix the error message you are getting, only to trigger a new error; The reason is that we are importing the python module for the surrogate Consider the following model _id: MyModel[A=hexane,B=toluene] I am then trying to do the equivalent of import MyModel. This can be fixed, but I need to think a little bit before I hammer out the Regards, Sigve On 12 February 2016 at 15:02, Sigve Karolius [email protected] wrote:
|
I just wanted to write to you. So anyway, thanks for looking into this. @(compilation of complex models): |
No problem, that is what I am here for. Side note: You will see (in nextRelease) that FireTaskBase is replaced by That is certainly one possibility, the issue I have is that the exact Sigve On 12 February 2016 at 15:36, Pavel Ferkl [email protected] wrote:
|
Fixed (partially) MoDeNa-EUProject#73
#74 fixed the problem:
However, when the model is out of range, the program ends with:
I realized that I can use the solubility model if I initialize with broad enough range of initial points, but I leave the issue open. |
I am picking it up right away! only tested the fix on the examples, this is aparently a little more Sigve On 15 February 2016 at 09:55, Pavel Ferkl [email protected] wrote:
|
Mr Ferkl, I do not think you have implemented a check to see whether your model was e.g. model = modena_model_new(c_char"awesome_model"//c_null_char); if(modena_error_occurred()) then I hope this works for you, SigveNOTE Sorry for repeating myself, but in order for this to work the python module On 15 February 2016 at 10:22, Sigve Karolius [email protected] wrote:
|
Hello Sigve, You are right these checks are largely missing in my code. Sorry about that. I will try to improve that. I must have read the passage about _id wrongly. I thought you were talking about the difference between "solubilityPol[A=Air]" and "solubilityPol" and that more needs to be done for this special issue. I renamed surrogate models to "Solubility[A=*]" and implemented the checks. The output I am getting now is:
Note that this is not high priority, because I can use the model as is, just the backward mapping feature is not working. Pavel |
No worries, just making sure we are on the same page. This error message is coming from me, so I will look at it. SigveOn a side note: I have a few thoughts regarding naming, and how we cooperate and The situation we are in now captures the essence of the When an author of a module change the _id of a surrogate model he/she/it However, you can change the module name, in which case the source code of So, how do we deal with this? I propose:
I am not saying it is wrong to change the _id, in this case I am inclined On 16 February 2016 at 11:47, Pavel Ferkl [email protected] wrote:
|
Did you push the latest changes? There were some updates when I pulled. but I am still getting the "old" On 16 February 2016 at 12:59, Sigve Karolius [email protected] wrote:
|
There should be no segmentation fault on the latest commit (e3063fa). Branch is still |
I am on the same commit, but physicalProperties.f90 in “foamConductivity” On 16 February 2016 at 17:14, Pavel Ferkl [email protected] wrote:
|
Maybe it's only a typo, but the relevant physicalProperties.f90 is in "foamAging" (https://github.com/japaf/MoDeNa/blob/solub/applications/PUfoam/MoDeNaModels/foamAging/src/src/physicalProperties.f90). I did not implement the checks everywhere, just for solubility now. One of them is on lines 145-147:
|
I think this issue is connected to automatic initialization. As of now, it doesn't work for models created by index sets or models, which depend on them. Thus, I still use the old initModels. This runs fine, but creates
func_*
folders in the root directory. When the workflow is run, it re-compiles the surrogate model for some reason once again, this time inside one of thelauncher_*
directories. It seems to initialize the first of the index sets models, but fails for the second one.How to reproduce:
solub
branchfoamAging
application./build
cp example_inputs/foamAging.in .
and change line 16 to1 1 1
./initModels
./workflow
Error message:
The text was updated successfully, but these errors were encountered: