Opened 9 years ago
Closed 9 years ago
#715 closed defect (Fixed)
Error when reading vertically integrated mass transport.
| Reported by: | arango | Owned by: | arango | 
|---|---|---|---|
| Priority: | major | Milestone: | Release ROMS/TOMS 3.7 | 
| Component: | Nonlinear | Version: | 3.7 | 
| Keywords: | Cc: | 
Description
In some computers, a segmentation violation occurred when reading the river vertically integrated mass transport (QbarG) in get_data.F:
     IF (LuvSrc(ng).or.LwSrc(ng)) THEN
       CALL get_ngfld (ng, iNLM, idRtra, SSF(ng)%ncid,                 &
    &                  1, SSF(ng), update(1),                          &
    &                  1, Nsrc(ng), 1, 2, 1, Nsrc(ng), 1,              &
    &                  SOURCES(ng) % QbarG(:,1))
       IF (exit_flag.ne.NoError) RETURN
     END IF
This was changed to remove (:,1) in QbarG:
     IF (LuvSrc(ng).or.LwSrc(ng)) THEN
       CALL get_ngfld (ng, iNLM, idRtra, SSF(ng)%ncid,                 &
    &                  1, SSF(ng), update(1),                          &
    &                  1, Nsrc(ng), 1, 2, 1, Nsrc(ng), 1,              &
    &                  SOURCES(ng) % QbarG)
       IF (exit_flag.ne.NoError) RETURN
     END IF
Similar changes are made to tl_get_data.F, rp_get_data.F and ad_get_data.F.
Many thanks to Teruhisa Okada for bringing this to my attention.
  Note:
 See   TracTickets
 for help on using tickets.
    