My Project
grid_metrics.f90
Go to the documentation of this file.
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 !/===========================================================================/
13 ! Copyright (c) 2007, The University of Massachusetts Dartmouth
14 ! Produced at the School of Marine Science & Technology
15 ! Marine Ecosystem Dynamics Modeling group
16 ! All rights reserved.
17 !
18 ! FVCOM has been developed by the joint UMASSD-WHOI research team. For
19 ! details of authorship and attribution of credit please see the FVCOM
20 ! technical manual or contact the MEDM group.
21 !
22 !
23 ! This file is part of FVCOM. For details, see http://fvcom.smast.umassd.edu
24 ! The full copyright notice is contained in the file COPYRIGHT located in the
25 ! root directory of the FVCOM code. This original header must be maintained
26 ! in all distributed versions.
27 !
28 ! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29 ! AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
30 ! THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
31 ! PURPOSE ARE DISCLAIMED.
32 !
33 !/---------------------------------------------------------------------------/
34 ! CVS VERSION INFORMATION
35 ! $Id$
36 ! $Name$
37 ! $Revision$
38 !/===========================================================================/
39 
40 SUBROUTINE grid_metrics
41  USE mod_par
42  USE mod_obcs
43  USE all_vars
44  USE mod_northpole
45  USE mod_setup
48  USE mod_nesting, ONLY: nesting_on
49 
50 
51  IMPLICIT NONE
52 
53  INTEGER:: STATUS
54  INTEGER:: I
55 
56  ! THESE SUBROUTINES SHOULD BE FURTHER BROKEN DOWN INTO THEIR
57  ! COMPONENT OPERATIONS AND THE WHOLE THING SHOULD BE MODULAR
58 
59 
60 !============================================
61 !Set up fluxes and control Volumes
62 !============================================
65 !============================================
66 !Calculate Element and Control Volume Areas
67 !============================================
68  CALL cell_area
69 
70 
71 !====================================================
72 ! Calculate Shape Coefficients for Flux Construction
73 !====================================================
74  CALL shape_coef_gcn
75 
76 
77 !============================================
78 !Calculate Node Control Volume Edge Lengths
79 !============================================
80  CALL edge_len
81 
82 
83 !====================================================
84 ! EXCHANGE SHAPE FACTOR INFORMATION
85 !====================================================
86 
87 !====================================================
88 ! Calculate the horizontal gradient of the bathymetry
89 !====================================================
90  CALL depth_gradient
91 
92 
93 !====================================================
94 ! SETUP BOUNDARY NEIGHBORS AND SUCH
95 !====================================================
96  CALL setup_obc
97 
98 !-------------------Read dam info--------------------
99 
100 !====================================================
101 ! SETUP THE LONGSHORE FLOW INDEX AND ANGLES
102 !====================================================
103  IF(obc_longshore_flow_on) CALL longshore_flow
104 
105 END SUBROUTINE grid_metrics
106 
subroutine shape_coef_gcn
subroutine setup_obc
Definition: mod_obcs.f90:592
subroutine triangle_grid_edge
Definition: tge.f90:41
logical nesting_on
subroutine longshore_flow
subroutine edge_len
Definition: edge_len.f90:41
subroutine grid_metrics
subroutine cell_area
Definition: cell_area.f90:52
subroutine depth_gradient
Definition: depth_grad.f90:45