/[MITgcm]/MITgcm/eesupp/src/check_threads.F
ViewVC logotype

Diff of /MITgcm/eesupp/src/check_threads.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by cnh, Wed Apr 22 19:15:30 1998 UTC revision 1.4 by adcroft, Tue May 18 17:39:21 1999 UTC
# Line 1  Line 1 
1  C $Id$  C $Header$
2    
3  #include "CPP_EEOPTIONS.h"  #include "CPP_EEOPTIONS.h"
4    
# Line 24  C     | and allow a programmer to modify Line 24  C     | and allow a programmer to modify
24  C     | barrier code to allow threads to be scheduled more       |  C     | barrier code to allow threads to be scheduled more       |
25  C     | appropriately.                                           |  C     | appropriately.                                           |
26  C     \==========================================================/  C     \==========================================================/
27          IMPLICIT NONE
28    
29  C     === Global data ===  C     === Global data ===
30  #include "SIZE.h"  #include "SIZE.h"
# Line 59  C Line 60  C
60        IF ( nChecks .GT. 10 ) THEN        IF ( nChecks .GT. 10 ) THEN
61         thError(myThid) = .TRUE.         thError(myThid) = .TRUE.
62         eeBootError     = .TRUE.         eeBootError     = .TRUE.
63         WRITE(msgBuffer,'(A,I,A,I,A)')         WRITE(msgBuffer,'(A,I5,A,I5,A)')
64       &  'S/R INI_CHECK_THREADS: Only ',numberThreadsRunning,       &  'S/R INI_CHECK_THREADS: Only ',numberThreadsRunning,
65       &  ' thread(s), ',nThreads,' are needed for this configuration!'       &  ' thread(s), ',nThreads,' are needed for this configuration!'
66          CALL PRINT_ERROR( msgBuffer , myThid)          CALL PRINT_ERROR( msgBuffer , myThid)
67  C--     Not enough threads are running so halt the program.  C--     Not enough threads are running so halt the program.
68  C       I didn't want this here but it is the only place I have found that  C       I did not want this here but it is the only place I have found that
69  C       KAP deadlocks if it there are fewer threads than iterations in a BLOCKED(1)  C       KAP deadlocks if it there are fewer threads than iterations in a BLOCKED(1)
70  C       loop. The deadlock appears to be in the routine mppjoin which never  C       loop. The deadlock appears to be in the routine mppjoin which never
71  C       returns. I tried putting the STOP in main or breaking out of the loop in main  C       returns. I tried putting the STOP in main or breaking out of the loop in main
# Line 83  C Line 84  C
84  C  C
85        RETURN        RETURN
86        END        END
   
 C $Id$  

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22