A Modular Arbitrary-Order Ocean-Atmosphere Model -- Stochastic implementation
test_dec_tensor.f90
Go to the documentation of this file.
1 
2 ! test_dec_tensor.f90
3 !
4 !> Small program to print the decomposed tensors.
5 !
6 !> @copyright
7 !> 2017 Jonathan Demaeyer.
8 !> See LICENSE.txt for license information.
9 !
10 !---------------------------------------------------------------------------!
11 
13 
14  USE dec_tensor
15  USE tl_ad_tensor, only:tltensor
17  USE tensor, only: print_tensor
18 
19  IMPLICIT NONE
20 
21  ! Program
22 
23  CALL init_aotensor ! Initialize the aotensor
24  CALL init_dec_tensor ! Compute the tensor
25 
26  print*, 'ao_tensor'
28 
29  print*, 'ss_tensor'
31 
32  print*, 'sf_tensor'
34 
35  print*, 'ff_tensor'
37 
38  print*, 'fs_tensor'
40 
41  print*, 'tltensor'
43 
44  print*, 'ss_tl_tensor'
46 
47  print*, 'Hx'
48  CALL print_tensor(hx)
49 
50  print*, 'Lxx'
51  CALL print_tensor(lxx)
52 
53  print*, 'Lxy'
54  CALL print_tensor(lxy)
55 
56  print*, 'Bxxx'
57  CALL print_tensor(bxxx)
58 
59  print*, 'Bxxy'
60  CALL print_tensor(bxxy)
61 
62  print*, 'Bxyy'
63  CALL print_tensor(bxyy)
64 
65  print*, 'Hy'
66  CALL print_tensor(hy)
67 
68  print*, 'Lyx'
69  CALL print_tensor(lyx)
70 
71  print*, 'Lyy'
72  CALL print_tensor(lyy)
73 
74  print*, 'Byxx'
75  CALL print_tensor(byxx)
76 
77  print*, 'Byxy'
78  CALL print_tensor(byxy)
79 
80  print*, 'Byyy'
81  CALL print_tensor(byyy)
82 
83 END PROGRAM test_dec_tensor
84 
type(coolist), dimension(:), allocatable, public lxy
Tensor holding the linear part of the resolved tendencies involving the unresolved variables...
Definition: dec_tensor.f90:38
type(coolist), dimension(:), allocatable, public bxxx
Tensor holding the quadratic part of the resolved tendencies involving resolved variables.
Definition: dec_tensor.f90:39
The resolved-unresolved components decomposition of the tensor.
Definition: dec_tensor.f90:16
type(coolist), dimension(:), allocatable, public byyy
Tensor holding the quadratic part of the unresolved tendencies involving unresolved variables...
Definition: dec_tensor.f90:48
type(coolist), dimension(:), allocatable, public fs_tensor
Tensor holding the part of the unresolved tensor involving resolved variables.
Definition: dec_tensor.f90:34
The equation tensor for the coupled ocean-atmosphere model with temperature which allows for an exten...
type(coolist), dimension(:), allocatable, public lyy
Tensor holding the linear part of the unresolved tendencies involving the unresolved variables...
Definition: dec_tensor.f90:45
Tensor utility module.
Definition: tensor.f90:18
type(coolist), dimension(:), allocatable, public lxx
Tensor holding the linear part of the resolved tendencies involving the resolved variables.
Definition: dec_tensor.f90:37
type(coolist), dimension(:), allocatable, public hy
Tensor holding the constant part of the unresolved tendencies.
Definition: dec_tensor.f90:43
type(coolist), dimension(:), allocatable, public ss_tl_tensor
Tensor of the tangent linear model tendencies of the resolved component alone.
Definition: dec_tensor.f90:50
type(coolist), dimension(:), allocatable, public byxy
Tensor holding the quadratic part of the unresolved tendencies involving both resolved and unresolved...
Definition: dec_tensor.f90:47
type(coolist), dimension(:), allocatable, public ff_tensor
Tensor holding the part of the unresolved tensor involving only unresolved variables.
Definition: dec_tensor.f90:31
type(coolist), dimension(:), allocatable, public bxxy
Tensor holding the quadratic part of the resolved tendencies involving both resolved and unresolved v...
Definition: dec_tensor.f90:40
type(coolist), dimension(:), allocatable, public ss_tensor
Tensor holding the part of the resolved tensor involving only resolved variables. ...
Definition: dec_tensor.f90:33
type(coolist), dimension(:), allocatable, public tltensor
Tensor representation of the Tangent Linear tendencies.
type(coolist), dimension(:), allocatable, public hx
Tensor holding the constant part of the resolved tendencies.
Definition: dec_tensor.f90:36
type(coolist), dimension(:), allocatable, public bxyy
Tensor holding the quadratic part of the resolved tendencies involving unresolved variables...
Definition: dec_tensor.f90:41
Tangent Linear (TL) and Adjoint (AD) model versions of MAOOAM. Tensors definition module...
type(coolist), dimension(:), allocatable, public sf_tensor
Tensor holding the part of the resolved tensor involving unresolved variables.
Definition: dec_tensor.f90:32
type(coolist), dimension(:), allocatable, public lyx
Tensor holding the linear part of the unresolved tendencies involving the resolved variables...
Definition: dec_tensor.f90:44
type(coolist), dimension(:), allocatable, public aotensor
- Tensor representation of the tendencies.
type(coolist), dimension(:), allocatable, public byxx
Tensor holding the quadratic part of the unresolved tendencies involving resolved variables...
Definition: dec_tensor.f90:46
subroutine, public init_dec_tensor
Subroutine that initialize and compute the decomposed tensors.
Definition: dec_tensor.f90:195
program test_dec_tensor
Small program to print the decomposed tensors.
subroutine, public init_aotensor
Subroutine to initialise the aotensor tensor.
subroutine, public print_tensor(t)
Routine to print a rank 3 tensor coolist.
Definition: tensor.f90:622