/[MITgcm]/MITgcm/eesupp/inc/MAIN_PDIRECTIVES2.h
ViewVC logotype

Contents of /MITgcm/eesupp/inc/MAIN_PDIRECTIVES2.h

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


Revision 1.6 - (show annotations) (download)
Sat Mar 27 03:51:50 2004 UTC (20 years, 1 month ago) by edhill
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57g_pre, checkpoint57s_post, checkpoint57b_post, checkpoint57g_post, checkpoint56b_post, checkpoint54d_post, checkpoint54e_post, checkpoint57r_post, checkpoint57d_post, checkpoint57i_post, checkpoint55, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint57n_post, checkpoint54f_post, checkpoint55i_post, checkpoint57l_post, checkpoint57t_post, checkpoint55c_post, checkpoint57v_post, checkpoint57f_post, checkpoint53d_post, checkpoint57a_post, checkpoint57h_pre, checkpoint54b_post, checkpoint57h_post, checkpoint52m_post, checkpoint55g_post, checkpoint57c_post, checkpoint55d_post, checkpoint54a_pre, checkpoint53c_post, checkpoint55d_pre, checkpoint57c_pre, checkpoint55j_post, checkpoint54a_post, checkpoint55h_post, checkpoint57e_post, checkpoint55b_post, checkpoint53a_post, checkpoint55f_post, checkpoint53g_post, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, eckpoint57e_pre, checkpoint56a_post, checkpoint53f_post, checkpoint57h_done, checkpoint57j_post, checkpoint57f_pre, checkpoint52n_post, checkpoint53b_pre, checkpoint56c_post, checkpoint57a_pre, checkpoint55a_post, checkpoint57o_post, checkpoint57k_post, checkpoint53b_post, checkpoint57w_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post
Changes since 1.5: +4 -4 lines
File MIME type: text/plain
 o cleanup comments (NO CODE CHANGES) in eesupp for protex
 o the "api reference" framework now builds documentation for:
     eesupp, pkg/generic_advdiff, and pkg/gmredi
 o remove mnc from the default gfd in pkg_groups pending
     further testing on systems where NetCDF is not installed

1 C $Header: /u/gcmpack/MITgcm/eesupp/inc/MAIN_PDIRECTIVES2.h,v 1.5 2001/09/21 03:54:36 cnh Exp $
2 C $Name: $
3 CBOP
4 C !ROUTINE: MAIN_PDIRECTIVES2.h
5 C !INTERFACE:
6 C include "MAIN_PDIRECTIVES2.h"
7 C !DESCRIPTION:
8 C *==========================================================*
9 C | MAIN\_PDIRECTIVES2.h
10 C *==========================================================*
11 C | Parallel directives to generate multithreaded code for
12 C | various different compilers. The master preprocessor
13 C | file CPP\_OPTIONS is used to select which of these
14 C | options is included in the code.
15 C | Note: Only some of the directives require end blocks.
16 C | For directives which do not require end blocks there
17 C | is no entry here.
18 C *==========================================================*
19 CEOP
20
21 #if defined USE_KAP_THREADING
22 C--
23 C-- Parallel directives for Kuck and Associates compiler.
24 C-- This is used to generate multi-threaded code on Digital
25 C-- systems. It can also be used under NT.
26 C-- Note: The KAP parallel proceesing tool has several bugs
27 C-- which means that if there are more threads (set via
28 C-- setenv PARALLEL) than iterations in the parallel
29 C-- loop the extra threads start on the section
30 C-- after the loop!
31 C-- To work around this we could place an extra dummy
32 C-- parallel section here. KAP places a barrier at the
33 C-- start of each parallel region which ensures that
34 C-- the extra threads wait (note this wait is in a busy loop).
35 C-- Without this feature the extra thread(s) will run on and may
36 C-- halt the program by calling STOP! Unfortunately that seems
37 C-- to cause a deadlock in a KAP library routine! Instead the
38 C-- current solution is to check for a thread reaching the
39 C-- shutdown part of main.F before other threads have
40 C-- completed computation ( see eedie.F ).
41 C
42 C*KAP* END PARALLEL REGION
43 C C*KAP* PARALLEL REGION
44 C CALL FOOL_THE_COMPILER
45 C C*KAP* END PARALLEL REGION
46 C
47 #endif
48 C
49

  ViewVC Help
Powered by ViewVC 1.1.22