Replies: 2 comments 6 replies
-
|
From what you have reported, it sounds like there may be a bug. However, I cannot investigate further without seeing your code. Can you provide the entire code you are running so that the issue can be reproduced? If you can reduce your code to a case that is as simple and minimal as possible (for example, a single column model), that will help a lot. Also just some misc nodes:
set!(atmosphere.velocities.u[n], 5)this will work with functions and arrays as well as scalars in place of When writing code into github issues/discussions, please use triple backticks (```) to format your code. Long code will be hard to read without the formatting. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Thank you for the great code!
I have a small doubt on how the atmospheric forcing/fluxes on the ocean is computed from the 3 hourly data of JRA55. I run global simulations using ClimaOcean.
An example case: I simulate a day, which results in the atmospheric velocity data having 9 time instances (assuming the instances are at 0,3,6,12....24 hours). I modified the atmospheric velocity as follows:
for j = 1:4
atmosphere.velocities.u.data[:,:,:,j] .= 0.0
end
for j = 5
atmosphere.velocities.u.data[:,:,:,j] .= 5.0
end
for j = 6:9
atmosphere.velocities.u.data[:,:,:,j] .= 0.0
end
If I simulate using the above modification, the maximum ocean horizontal velocity is around 10^(-7) up to 3 hours (which makes sense with no atmospheric forcing, velocity is low). But after 3 hours maximum ocean horizontal velocity starts ramping up. By the end of 6 hours, it is 7.7*10^(-3).
If I set atmosphere.velocities.u.data[:,:,:,:] .= 0.0 (everything is zero at all times), then after six hours horizontal velocity stays at 10^(-7).
So I was wondering how the fluxes are computed for each time step using the 9 original data slices.
Any answer would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions