26
26
import matplotlib .colors as mcl
27
27
28
28
29
- # Define blue colormap with nice blue .
29
+ # Define blue colormap.
30
30
cdict = {
31
31
'red' : ((0.0 , 0.0 , 0.0 ), (0.5 , 0.216 , 0.216 ), (1.0 , 1.0 , 1.0 )),
32
32
'green' : ((0.0 , 0.0 , 0.0 ), (0.5 , 0.494 , 0.494 ), (1.0 , 1.0 , 1.0 )),
@@ -42,7 +42,7 @@ class Model:
42
42
This is the skeleton of a QG model that consists of a number of conserved
43
43
quantities that are advected horizontally. Implementations of this model
44
44
need to specify the number of conserved quantities (nz) and supply an
45
- inversion relation that yield the streamfuncion given the conserved quan-
45
+ inversion relation that yields the streamfuncion given the conserved quan-
46
46
tities. The model geometry is doubly periodic in the perturbations; mean
47
47
flow and gradients in the conserved quantities can be prescribed.
48
48
"""
@@ -108,7 +108,7 @@ def initq(self, qp):
108
108
"""Transform qp to spectral space and initialize q."""
109
109
self .q = fftw .interfaces .numpy_fft .rfft2 (qp , axes = (0 , 1 ),
110
110
threads = self .threads )
111
- self .q [:, 0 ,0 ] = 0. # ensuring zero mean
111
+ self .q [0 ,0 ,: ] = 0. # ensuring zero mean
112
112
113
113
def timestep (self ):
114
114
"""Perform time step."""
0 commit comments