-
Notifications
You must be signed in to change notification settings - Fork 13
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
Adapt the IsothermAccurateWorkChain #111
base: develop
Are you sure you want to change the base?
Conversation
@ElMouba could you explain what the changes are trying to accomplish, and what is going wrong? |
Previously, when the last pressure point calculated was higher than the saturation pressure, the workchain should stop and converge. Now, I changed a bit the logic (for a different application): I also tried another way by defining a totally new function for that last calculation and add it to the outline of the workchain and still didn't work. The logic seems to me an easy one to implement, but I am not being able to !! |
inter = scipy.stats.linregress([preg1, preg2, preg3], [conv1*load1, conv2*load2, conv3*load3])[1] | ||
|
||
self.ctx.pressure = (self.ctx.geom['Estimated_saturation_loading'] - inter)/slope | ||
self.ctx.gcmc_1 += 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should that be
self.ctx.gcmc_1 += 1 | |
self.ctx.gcmc_i += 1 |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sorry, it was a typo but it changes nothing !!
I am trying something now and will let you know if it works.
In the outline of the workchain, a new gcmc calculation is called only if the While loop returns True.
The fact that we have return False there then it converges and exits.
I switched it to True and added a dummy condition as False afterwards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still not working :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the gcmc at least running now?
Could you commit & push your changes?
Draft Pull request with changes from @ElMouba to the
IsothermAccurateWorkChain
.