Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions external/RSL_LITE/module_dm.F
Original file line number Diff line number Diff line change
Expand Up @@ -2213,8 +2213,8 @@ SUBROUTINE get_full_obs_vector( nsta, nerrf, niobf, &
INTEGER N_BUFFER(NIOBF)
REAL FULL_BUFFER(NIOBF)
INTEGER IFULL_BUFFER(NIOBF)
INTEGER IDISPLACEMENT(1024) ! HARD CODED MAX NUMBER OF PROCESSORS
INTEGER ICOUNT(1024) ! HARD CODED MAX NUMBER OF PROCESSORS
INTEGER, ALLOCATABLE , DIMENSION(:) :: IDISPLACEMENT
INTEGER, ALLOCATABLE , DIMENSION(:) :: ICOUNT

INTEGER :: MPI_COMM_COMP ! MPI group communicator
INTEGER :: NPROCS ! Number of processors
Expand All @@ -2225,6 +2225,8 @@ SUBROUTINE get_full_obs_vector( nsta, nerrf, niobf, &

! Get rank of monitor processor and broadcast to others.
CALL MPI_COMM_SIZE( MPI_COMM_COMP, NPROCS, IERR )
ALLOCATE (IDISPLACEMENT(NPROCS))
ALLOCATE (ICOUNT(NPROCS))

! DO THE U FIELD
NLOCAL_DOT = 0
Expand Down Expand Up @@ -2369,6 +2371,8 @@ SUBROUTINE get_full_obs_vector( nsta, nerrf, niobf, &
ERRF(10,IFULL_BUFFER(N)) = FULL_BUFFER(N)
END DO

DEALLOCATE (IDISPLACEMENT)
DEALLOCATE (ICOUNT)
#endif
END SUBROUTINE get_full_obs_vector

Expand Down