-
Notifications
You must be signed in to change notification settings - Fork 24
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
Error if temperature BC or source with F.Temperature
#812
Error if temperature BC or source with F.Temperature
#812
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #812 +/- ##
=======================================
Coverage 99.55% 99.55%
=======================================
Files 61 61
Lines 2707 2711 +4
=======================================
+ Hits 2695 2699 +4
Misses 12 12 ☔ View full report in Codecov by Sentry. |
Since this is about the |
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.
Hi @JonathanGSDUFOUR. Thank you for this fix.
I have a few comments on the current implementation below. Moreover, it appears to me that your fix covers only the case when boundary conditions for the temperature field are set simultaniously with F.Temperature
, but doesn't catch the cases when a source or an initial condition are set together with F.Temperature
which were mentioned at the start of #787. However, I think the latter can be discussed with @RemDelaporteMathurin after his review.
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 agree with @KulaginVladimir we would need to perform this check also if Source
objects are set.
Vladimir, initial temperatures are set as an argument of HeatTransferProblem
right? so maybe no need to check this too? idk
Indeed. There is no need in such a check. I assume that I was thinking of the This is not related to the current PR anyway. |
I'm not entirely sure that an error is raised |
Thank you @KulaginVladimir and @RemDelaporteMathurin for the feedback ! |
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.
Hey @JonathanGSDUFOUR here are a few very small changes 👍
After that I think it's good to go, unless @KulaginVladimir sees something else
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'll let this open for a little while longer just in case someone else has comments
F.Temperature
I think we can merge this now, @KulaginVladimir |
Thank you so much for this contribution Jonathan!! 🎉 |
Proposed changes
Added check in the
generic_simulation
to prevent the use of festim.Temperature with boundary condition set on theT
field (Issue #787 ).Types of changes
What types of changes does your code introduce to FESTIM?
Checklist
Further comments
Some other tests had to be slightly modified, is there a better way than what I did ?