Skip to content
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

Thermal Model iterative execution error #99

Open
jzmejia opened this issue Dec 4, 2023 · 0 comments
Open

Thermal Model iterative execution error #99

jzmejia opened this issue Dec 4, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jzmejia
Copy link
Owner

jzmejia commented Dec 4, 2023

Error in ib.temperature (ThermalModel instance) when running model at the first thermal model timestep to recalculate ice block temperatures and refreezing

error is raised from
ice block.increment_time()

# Run temperature solver with updated geometry
if self.n % self.thermal_freq == 0:
    self.temperature.calc_temperature(self.crev_locs)
for num, crev in enumerate(self.crev_idx):
     # upstream of crevasse
     if num+1 < len(self.crev_idx) or max(crev) > rhs.size-nx:
         idx = [x-1 for x in crev if x < idx_surface]
         rhs[idx] = rhs[idx] + (self.Lf/self.heat_capacity_intercept * self.bluelayer_right[0])/self.ibg.dx

error there is pointing to the line with self.bluelayer_right which is updated by .calc_refreezing()

@jzmejia jzmejia added the bug Something isn't working label Dec 4, 2023
@jzmejia jzmejia self-assigned this Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant