Commit 72e2b37b authored by Jean Matthieu Haussaire's avatar Jean Matthieu Haussaire
Browse files

Initialize the obs_cinipos in case there is no background attribute in...

Initialize the obs_cinipos in case there is no background attribute in obsvect. With this version of the code, I could run the flexpart test using Espen data
parent 1b300534
...@@ -286,7 +286,8 @@ def obsoper(self, inputs, mode, ...@@ -286,7 +286,8 @@ def obsoper(self, inputs, mode,
obs_cinipos[obs_i] = np.dot(cini[:], obs_cinipos[obs_i] = np.dot(cini[:],
controlvect.x[npvar+ni*ncini:npvar+(ni+1)*ncini]) controlvect.x[npvar+ni*ncini:npvar+(ni+1)*ncini])
else:
obs_cinipos[:]=0
if getattr(tracer, 'offsets', False): if getattr(tracer, 'offsets', False):
# Optimize offsets # Optimize offsets
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment