Skip to content

errors in diffusive_ice_column_model.jl #33

@francispoulin

Description

@francispoulin

diffusive_ice_column_model.jl defines two functions to be functions of (x, y, t), but the right hand side only depends on t and this causes an error.

In the current state of affairs, I think we need make the following changes:

air_ice_temperature(x, y, t) = top_T_slope * t + top_T_amplitude * sin(2π*t/day) + initial_air_ice_temperature

should become

air_ice_temperature(t) = top_T_slope * t + top_T_amplitude * sin(2π*t/day) + initial_air_ice_temperature

and

ice_ocean_temperature(x, y, t) = bottom_T_slope * t + initial_ice_ocean_temperature

should become

ice_ocean_temperature(t) = bottom_T_slope * t + initial_ice_ocean_temperature

With these changes plotting needs to be changes slightly in lines 42, 43, 189, and 190.

Do people agree?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions