Hello
Thanks in advance for your time.
I am running cesm2.2.0 and trying to write out a variable to the atm.log file from the gw_drag module. I only wish to know its values for a single vertical column (exact location doesn't matter), and the code that I have written at the end of the module is:
IF (masterproc) then
do k = 1, pver
write (iulog,*) variable(5,k)
enddo
ENDIF
where the variable is defined as variable(ncol, pver) where ncol=5 an arbitrarily chosen column ID and pver is the vertical level ID.
I was under the impression that the master processor has information of all of the variables, meaning I can pick any point in the atmosphere on any other processor, and the master processor will print it out to the log file. What I get however is this statement printed out 22 times.
I have recently learnt that the issue could be with domain decomposition and how the dimensions are defined, where every processor has a number of chunks ("lchnk"), and each chunk has it's own ncol list, and so what appears to be happening is that the master processor has 22 chunks, and each chunk has an ncol = 5.
Best wishes
Marcin
Thanks in advance for your time.
I am running cesm2.2.0 and trying to write out a variable to the atm.log file from the gw_drag module. I only wish to know its values for a single vertical column (exact location doesn't matter), and the code that I have written at the end of the module is:
IF (masterproc) then
do k = 1, pver
write (iulog,*) variable(5,k)
enddo
ENDIF
where the variable is defined as variable(ncol, pver) where ncol=5 an arbitrarily chosen column ID and pver is the vertical level ID.
I was under the impression that the master processor has information of all of the variables, meaning I can pick any point in the atmosphere on any other processor, and the master processor will print it out to the log file. What I get however is this statement printed out 22 times.
I have recently learnt that the issue could be with domain decomposition and how the dimensions are defined, where every processor has a number of chunks ("lchnk"), and each chunk has it's own ncol list, and so what appears to be happening is that the master processor has 22 chunks, and each chunk has an ncol = 5.
Best wishes
Marcin