-
Notifications
You must be signed in to change notification settings - Fork 6
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
Development #97
Development #97
Conversation
Release v1.1
Update development with new release and hotfixes
…reached exit solve after iter_limit reached
…ive-flux Feature change err for negative flux resolves #94
calc vertical flux function
solves #91 by calling s.calc_vertical_flux() after solve |
solves #100 |
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.
Lines 49-51 and and 344-346 seem to be redundant
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.
Thanks, deleted them, check out my latest commit.
@@ -491,10 +498,15 @@ def check_convergence(self, verbose, conv_crit, start, iter_limit): | |||
|
|||
return False | |||
|
|||
def check_vertical_flux(self, conv_crit): | |||
def calc_vertical_flux(self): |
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 this different for every solver or could it simply be inherited?
vert_flux = (self.conc[:, 1:-1, 1:-1, 1:-1] - self.conc[:, | ||
:-2, 1:-1, 1:-1]) * self.pre_factors[1][:, :-2, 1:-1, 1:-1] | ||
vert_flux[self.nn == torch.inf] = 0 | ||
return vert_flux | ||
|
||
def check_vertical_flux(self, conv_crit): |
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.
Inheritance? see question above
Fixes the iter limit reach and negative flux convergence issues.