Skip to content
Discussion options

You must be logged in to vote

Hello @neoshanarayanan
You have to create a transient forcing, it is one column per time slice, and the bottom row is the time (in years). If you have a monthly forcing, you can do something like:

md.smb.mass_balance=zeros(md.mesh.numberofvertices+1, 12);
md.smb.mass_balance(1:end-1, 1) = SMB_january;
md.smb.mass_balance(1:end-1, 2) = SMB_february;
...
%time (last row)
md.smb.mass_balance(end,:) = 2020:1/12:2021-1/12;

and if you just want to repeat this cycle again and again you can add:

md.timestepping.cycle_forcing=1;

I hope this helps
Mathieu

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MathieuMorlighem
Comment options

Answer selected by MathieuMorlighem
@neoshanarayanan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants