set_temperature
– Arbitrary set values for the temperature field.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(out) | :: | var(i1:i2,j1:j2) |
subroutine set_temperature(var) real , intent(out) :: var(i1:i2, j1:j2) integer :: i, j do j = j1, j2 do i = i1,i2 var(i,j) = 2.0 + cos(2.0*lons(i)/lon_max*PI) & *cos(lats(j)/lat_max*PI)*cos(lats(j)/lat_max*PI) enddo enddo end subroutine set_temperature