Skip to content

Commit cacd7fd

Browse files
committed
fix minor typo in shape
1 parent a3eb903 commit cacd7fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdebench/data_gen/data_gen_NLE/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ def __create_3DRand_init(u, d0, T0, delD, delP, keys):
11401140
continue
11411141
# random phase
11421142
key, subkey = random.split(key)
1143-
phs = 2. * jnp.pi * random.uniform(key, shape=[3]) # (vi, k)
1143+
phs = 2. * jnp.pi * random.uniform(key, shape=[5]) # (vi, k)
11441144

11451145
uk = 1./jnp.sqrt(kx**2 + ky**2 + kz**2)
11461146
kdx = kx * xc[:,None,None] + ky * yc[None,:,None] + kz * zc[None,None,:]

0 commit comments

Comments
 (0)