/[MITgcm]/MITgcm_contrib/dgoldberg/streamice/phi_gl_streamice.F
ViewVC logotype

Contents of /MITgcm_contrib/dgoldberg/streamice/phi_gl_streamice.F

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


Revision 1.2 - (show annotations) (download)
Wed Aug 27 19:29:12 2014 UTC (10 years, 10 months ago) by dgoldberg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +6 -3 lines
Error occurred while calculating annotation data.
updating contrib streamice repo with latest files, and separated out convergence checks; and parameterised maximum iteration counts and interface w shelfice for coupling

1 C $Header: /u/gcmpack/MITgcm/pkg/streamice/phi_gl_streamice.F,v 1.2 2013/06/21 19:35:44 dgoldberg Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 _RL FUNCTION PHI_GL_STREAMICE (X, W)
7
8 ! This function returns a "smoothed indicator function"
9 ! that is zero when x<0, 1 when x>w/2, and continuously diff.
10
11 _RL X, W
12 _RL TMP1, PI
13
14 IF (X.le.0.0) THEN
15 PHI_GL_STREAMICE = 0.0
16 ELSEIF(X.gt.0.5*W) THEN
17 PHI_GL_STREAMICE = 1.0
18 ELSE
19 PI = 3.14159265358979323844D0
20 TMP1 = COS (2*PI*X/W)
21 PHI_GL_STREAMICE = 0.5 * (1-TMP1)
22 ENDIF
23
24 RETURN
25 END

  ViewVC Help
Powered by ViewVC 1.1.22