1 |
edhill |
1.8 |
C $Header: /u/gcmpack/MITgcm/eesupp/src/fool_the_compiler.F,v 1.7 2002/10/10 20:07:37 adcroft Exp $ |
2 |
cnh |
1.6 |
C $Name: $ |
3 |
adcroft |
1.3 |
|
4 |
|
|
#include "CPP_EEOPTIONS.h" |
5 |
cnh |
1.1 |
|
6 |
cnh |
1.6 |
CBOP |
7 |
|
|
|
8 |
|
|
C !ROUTINE: FOOL_THE_COMPILER |
9 |
|
|
|
10 |
|
|
C !INTERFACE: |
11 |
adcroft |
1.7 |
SUBROUTINE FOOL_THE_COMPILER( foolishArg ) |
12 |
adcroft |
1.4 |
IMPLICIT NONE |
13 |
cnh |
1.6 |
C !DESCRIPTION: |
14 |
|
|
C *=================================================================* |
15 |
edhill |
1.8 |
C | SUBROUTINE FOOL\_THE\_COMPILER | |
16 |
cnh |
1.6 |
C | o Dummy routine used to supress compiler behavior. | |
17 |
|
|
C *=================================================================* |
18 |
|
|
C | Routine is used to stop compiler optimizations in which global | |
19 |
|
|
C | data is held in a register while it is updated by a separate | |
20 |
|
|
C | thread. Calling this routine introduces the possibility of side | |
21 |
|
|
C | effects on global data ensuring that memory locs. are reread. | |
22 |
|
|
C *=================================================================* |
23 |
|
|
CEOP |
24 |
adcroft |
1.7 |
INTEGER foolishArg |
25 |
cnh |
1.1 |
RETURN |
26 |
|
|
END |