subroutine posks2(llat,llong,offset,ri,rj, + gridn,ypivn,xpivn,ypivo) real llat,llong,ri,rj,ypivo,xpivn,ypivn,gridn + radian,pi integer icp c c --- Author: Knud Simonsen, NERSC, nov 1993. c --- This routine is based on the routine oldnew.f in the Bleck code, c --- whice is reversed. c c --- This routine find the i,j - model coordinates (ri,rj) in a c --- rotatet Mercator model grid. c c --- Input: lat: latitude in degrees. c --- long: longitude in degrees. c --- offset = 0.0: mass points c --- offset = -0.5: vorticity points c c --- output : ri: i-model coordinate c --- rj: j-model coordinate. radian=57.2957795 pi=3.1415926536 gridnr=gridn/radian !gridres. in rad xlongo = llong-ypivo !ypivo is the meridiane, which !applied as 'model equator' if (xlongo.le.-180.) then !Ensure that -180