Error with coupling in upgrading from UM vn11.4 to 12.1

Hi Dan,

The atmosphere to ocean coupling variables are set in src/control/coupling/oasis3_puta2o.F90. It looks like the calculation of totalrain has been mangled with the upgrade of UM version.

Comparing the code block in Emma’s 11.4 suite to your 12.1 suite, there are a couple of lines missing which means the variable isn’t set properly:

  IF (l_train) THEN
    DO j=1,oasis_jmt
      DO i=1,oasis_imt
        rainls(i,j) = c_lsrain(i,j)
        IF (l_param_conv) THEN
          rainconv(i,j) = c_cvrain(i,j)
        ELSE
          rainconv(i,j) = 0.0
        END IF
        IF (l_ctile .AND. fland_loc(i,j) == 1.0) THEN
          totalrain(i,j,1)=0.0
        ELSE IF (.NOT. l_ctile .AND. land(i,j)>0.99) THEN
-          totalrain(i,j,1)=0.0
-        ELSE
          totalrain(i,j,1)=rainls(i,j)+rainconv(i,j)
        END IF
      END DO
    END DO
  END IF

Hopefully it should just be a case of fixing this in the vn12.1_vn12.1_metum-goml branch.

Annette

1 Like