{"action":"created","issue":{"url":"https://api.github.com/repos/rabernat/floater/issues/20","repository_url":"https://api.github.com/repos/rabernat/floater","labels_url":"https://api.github.com/repos/rabernat/floater/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/rabernat/floater/issues/20/comments","events_url":"https://api.github.com/repos/rabernat/floater/issues/20/events","html_url":"https://github.com/rabernat/floater/issues/20","id":194084684,"number":20,"title":"MITgcm error when reading in float file ","user":{"login":"nathanieltarshish","id":20796154,"avatar_url":"https://avatars.githubusercontent.com/u/20796154?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanieltarshish","html_url":"https://github.com/nathanieltarshish","followers_url":"https://api.github.com/users/nathanieltarshish/followers","following_url":"https://api.github.com/users/nathanieltarshish/following{/other_user}","gists_url":"https://api.github.com/users/nathanieltarshish/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanieltarshish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanieltarshish/subscriptions","organizations_url":"https://api.github.com/users/nathanieltarshish/orgs","repos_url":"https://api.github.com/users/nathanieltarshish/repos","events_url":"https://api.github.com/users/nathanieltarshish/events{/privacy}","received_events_url":"https://api.github.com/users/nathanieltarshish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-12-07T15:45:17Z","updated_at":"2016-12-08T22:15:37Z","closed_at":null,"body":"I am encountering an error when running the MITgcm that appears in the .e file for the job I submitted to my cluster (not in STDERR or STDOUT):\r\n```\r\nIn source file mdsio_rd_rec_rl.f, at line number 1824\r\n at line number 1824\r\n File name = flt_CM2p6_global_hex.bin    unformatted, direct access   record = 37172161\r\n In source file mdsio_rd_rec_rl.f, at line number 1824\r\nPGFIO-F-253/unformatted read/unit=9/attempt to read non-existent record (direct access).\r\n File name = flt_CM2p6_global_hex.bin    unformatted\r\n```\r\nThe relevant section with line 1824 is shown below: \r\n ```fortran\r\n      IF ( debugLevel.GE.debLevC ) THEN\r\n        WRITE(msgBuf,'(A,I9,2x,I9)')\r\n     &      ' MDS_RD_REC_RL: iRec,Dim = ', iRec, nArr\r\n        CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,\r\n     &                      SQUEEZE_RIGHT , myThid )\r\n      ENDIF\r\n\r\n      IF ( fPrec.EQ.precFloat32 ) THEN\r\n        READ( dUnit, rec=iRec ) r4Buf <--------------------------------- LINE 1824 \r\n        DO k=1,nArr\r\n          arr(k) = r4Buf(k)\r\n        ENDDO\r\n      ELSEIF ( fPrec.EQ.precFloat64 ) THEN\r\n        READ( dUnit, rec=iRec ) r8Buf\r\n        DO k=1,nArr\r\n          arr(k) = r8Buf(k)\r\n        ENDDO\r\n      ELSE\r\n        WRITE(msgBuf,'(A,I9)')\r\n     &        ' MDS_RD_REC_RL: illegal value for fPrec=',fPrec\r\n        CALL PRINT_ERROR( msgBuf, myThid )\r\n        STOP 'ABNORMAL END: S/R MDS_RD_REC_RL'\r\n      ENDIF\r\n\r\n      RETURN\r\n      END\r\n```\r\nThe float file I am attempting to use was generated with\r\n```python \r\n\r\nfs = generators.FloatSet((-280,80), (-81,65.0), dx=.03125, dy=.03125)\r\nmodel_grid = {'lon': mask_lon, 'lat': mask_lat, 'land_mask': mask_bath}\r\nfs.to_mitgcm_format(\"flt_CM2p6_global_hex\", model_grid=model_grid)\r\n```\r\nFrom visually inspection, I am fairly confident that the hexagonal tiling step is done correctly. However, given the recent changes to `to_mitgcm_format()` it is possible that the output formatting was broken. To test this, I will try to rebuild a float file with the new code that I know was previously working fine with the MITgcm. "},"comment":{"url":"https://api.github.com/repos/rabernat/floater/issues/comments/265872054","html_url":"https://github.com/rabernat/floater/issues/20#issuecomment-265872054","issue_url":"https://api.github.com/repos/rabernat/floater/issues/20","id":265872054,"user":{"login":"nathanieltarshish","id":20796154,"avatar_url":"https://avatars.githubusercontent.com/u/20796154?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanieltarshish","html_url":"https://github.com/nathanieltarshish","followers_url":"https://api.github.com/users/nathanieltarshish/followers","following_url":"https://api.github.com/users/nathanieltarshish/following{/other_user}","gists_url":"https://api.github.com/users/nathanieltarshish/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanieltarshish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanieltarshish/subscriptions","organizations_url":"https://api.github.com/users/nathanieltarshish/orgs","repos_url":"https://api.github.com/users/nathanieltarshish/repos","events_url":"https://api.github.com/users/nathanieltarshish/events{/privacy}","received_events_url":"https://api.github.com/users/nathanieltarshish/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T22:15:37Z","updated_at":"2016-12-08T22:15:37Z","body":"@rabernat Here is I think the relevant section of STDOUT.0000 that you asked for:\r\n```fortran\r\n(PID.TID 0000.0001)  MDS_READVEC_LOC: open file: flt_CM2p6_hex_32deg.bin\r\n(PID.TID 0000.0001)  MDS_RD_REC_RL: iRec,Dim =         1          9\r\n(PID.TID 0000.0001)  bi,bj=   0   0 , npart,max_npart= 3.71718440E+07 3.71718440E+07\r\n(PID.TID 0000.0001)  MDS_RD_REC_RL: iRec,Dim =         2          9\r\n(PID.TID 0000.0001)  MDS_RD_REC_RL: iRec,Dim =         3          9\r\n(PID.TID 0000.0001)  MDS_RD_REC_RL: iRec,Dim =         4          9\r\n(PID.TID 0000.0001)  MDS_RD_REC_RL: iRec,Dim =         5          9\r\n``` \r\n\r\n@anirban89 \r\nThanks for the suggestion. Not sure I totally follow though. \r\n> Have you tried to generate the floats without using to_mit_gcm\r\n\r\nAre you suggesting that I call `get_oceancoords` on its own and then compare to the output of `to_mit_gcm` (which calls  `get_oceancoords` itself) ? Given the different formats, I'm not sure how informative a diff would be. Or am I misinterpreting your suggestion? Thanks"}}
{"actor":{"display_login":"nathanieltarshish"}}