Main menu

Navigation

Zonally homogenizing parameters at each timestep

1 post / 0 new
minminjfu@...
Zonally homogenizing parameters at each timestep

Hello All,

I am currently trying to zonally average parameters such as surface flux and radiative heating within each timestep in CAM4.  I have written some code to attempt this using the gatther_to_chunk and scatter_to_field subroutines, but I realized that what I did does not solve the problem since I am calculating these averages after tphysbc has finished.  I need a way to calculate these fields, replace the interactive values, and then integrate them all in the middle of the parallelized tphysbc section.  Do you guys have any suggestions about the best way to do this?  I think I would have to first gather all of the chunks to the master processor, calculate averages, and then scatter the average back to all of the other processors, perhaps using something like mpi_gather for this.  Anyways this seems a bit tricky, and if anybody has some example code or could point me in the right direction, that would be very helpful.  Thank you!

Regards,

Minmin 

 

Minmin Fu
Ph.D. Student

Who's new

  • m.kliphuis@...
  • ddc3061993@...
  • hui.ding@...
  • zhouc@...
  • arianna.valmass...