Recently I found my printing write out is working weirdly using the same branch and the same suite but it is printing multiple times for each time step which was working properly before. I am not sure what has been going on. I have been spent time trying to diagnose it myself but no luck. I wonder if you could shed some light on this.
This is the job.out
time 25200
al = 3.128454
aj = 9.3981804E-08
al = 3.128454
aj = 9.3981804E-08
al = 3.128454
aj = 9.3981804E-08
al = 3.128454
aj = 1.2224722E-07
al = 3.128454
aj = 1.2224722E-07
al = 3.128454
aj = 1.2224722E-07
al = 3.128454
aj = 1.2224722E-07
al = 3.128454
aj = 1.2224722E-07
al = 3.128454
aj = 1.2224722E-07
and this is bit of code the printing statement is regarding to.
Previously it would only be printed three time one for each iteration and the values are the same. I remembered this because I asked about why it’s printing three times but now it suddenly didn’t work. Would the problem with the branch or the rose suite that I have modified.
Hi Wenyao:
Which suite is this for? Where is the log file and the JULES source code?
I am busy till after Wednesday right now. I can try to look at it after Wednesday.
Patrick
Hi Wenyao:
I just looked at your JULES source code and the latest log file for your suite u-cz703. It doesn’t look like it is having the same problem anymore. Did you fix it? What did you change in order to fix it?
Patrick
Thanks for your reply. I am not sure what you mean that the problem disappears. I think it is still printing multiple times than it should be printing. I have attached part of my log file and you can see that the al,aj which should be printing three times for once has been printed again and again and the problem doesn’t go away when I try to print in other parts of the code where I have not interfered with. I am genuinely conf
used about what’s going on. It would be great if you can take a look?
Sorry in this case it is the k. K is the iteration value from 1 to 3. That means for one time step k should be looping to 3 and stop but its doing the iteration multiple times.
I’m sorry, I can’t find “print ‘k’” in your code. Where is it? Also, if you used longer strings than just one letter (in this case, '‘k’), it would be easier to find the strings in your code.
Patrick
Also, you’re printing out the ‘Time’ every 800 time steps.
maybe the first loop of k from 1 to 3 is for Time=800, and the next time k loops from 1 to 3, that isn’t for Time=800, but instead for Time=801?
Patrick
Thanks for your support. I thought I should align with the running time step which is half hourly? Also, Can you confirm it’s in the name list in the rose suite? I don’t remember changing the print time settings.
Sorry for the confusion, you should be able to find the print k statement at line 1414 in the sf_stom file for the revision version 27273.
Hi again, Wenyao:
Another suggestion:
You might consider putting more print statements in your code, for example, at the beginning of the sf_stom subroutine. That way, you can figure out how many times the sf_stom subroutine is called for each time the print k statement (on line 1414) is called. You might need other print statements, too.
Patrick
I am writing to tell you that I have tested it with JULES trunk 7.4 and it turns out sf_stom has been called for several times at one timestep and I have got no idea why is this happening.
Thanks for your advice. I have added print statements for sf_stom and leaf to track.This is the log for sf_stom and leaf run. You can see two major issues, sf_stom has been called several times at one timestep and both two options of photo_model were run.
I have set it to run photo_model as faqurha model and somehow it will go and print statement under the photo_model = collatz section. I have got no idea why this is happening. Only of these models should be run.
And as you can also seen sf_stom has been called only once in the JULES code (as well as physiol) but when printing sf_stom seems to be run multiple time.
Hi Wenyao
There are 9 PFTs. Maybe it’s running multiple times through your code because it runs once for each PFT? If I remember correctly, in the original version of the code, the C3 PFTs used the Farquhar model and the C4 PFTs used the Collatz model for photosynthesis (or maybe it’s the other way around). Does this explain things?
On a related note, I can’t look at your two files
/home/users/gwy1998/JULES/r24333_pmodel/src/science/surface/leaf_jls_mod.F90
/home/users/gwy1998/JULES/r24333_pmodel/src/science/surface/sf_stom_jls_mod.F90
It says permission denied, when I try to look at those two files. Maybe you can fix that?
Patrick
I am trying to verify if it is the case. If it is due to PFTs I guess it should be run parallelly to each other? How do they output programme know which GPP to output. Does it also identify which PFT it is?
I have unlocked the permission. You should be able to access the files now. Thanks again for your help.