Skip to content

Scaling ShallowWaterModel causes static issue #2672

Discussion options

You must be logged in to vote

@rbenamran do you mind if I convert this to a discussion? This would fit in the "computational science" category: https://github.com/CliMA/Oceananigans.jl/discussions/categories/computational-science

The issue here is the function random_smth which uses wavenumbers i, j that range from 1 to 16:

function rand_smth(x::Float64, y::Float64)
    X = x / 1000000
    Y = y / 1000000
    val = 0
    for i in 1:n
        for j in 1:m
            ar = alea[i,j,1]
            br = alea[i,j,2]
            cr = alea[i,j,3]
            dr = alea[i,j,4]
            val += ar * cos(i * x) * cos(j * y)
            val += br * cos(i * x) * sin(j * y)
            val += cr * sin(i * x) * cos(j * y)
        …

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@simone-silvestri
Comment options

@rbenamran
Comment options

@glwagner
Comment options

@rbenamran
Comment options

@glwagner
Comment options

Answer selected by rbenamran
Comment options

You must be logged in to vote
1 reply
@glwagner
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2671 on July 18, 2022 19:13.