-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathFields.jl
101 lines (76 loc) · 1.88 KB
/
Fields.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
module Fields
using Gridap.Arrays
import Gridap.Arrays: testvalue
import Gridap.Arrays: inverse_map
import Gridap.Arrays: get_children
import Gridap.Arrays: is_zero_block
import Gridap.Arrays: testitem
using Gridap.Arrays: BlockArrayCooMap
using Gridap.Helpers: @abstractmethod, @notimplemented
using Gridap.Helpers: @notimplementedif, @unreachable, @check
using Gridap.Algebra: mul!
using Gridap.Algebra: fill_entries!
using Gridap.TensorValues
using LinearAlgebra: mul!, Transpose, diag
using ForwardDiff
using FillArrays
using Test
using BlockArrays
using StaticArrays
import LinearAlgebra: det, inv, transpose, tr, cross
import LinearAlgebra: ⋅, dot
import Base: +, -, *, /
import Gridap.TensorValues: ⊗, ⊙, symmetric_part, outer
import Gridap.Arrays: IndexStyle
import Gridap.Arrays: return_cache
import Gridap.Arrays: return_type
import Gridap.Arrays: testargs
import Gridap.Arrays: return_value
import Gridap.Arrays: evaluate!
import Gridap.Arrays: lazy_map
import Gridap.Arrays: array_cache
import Gridap.Arrays: is_zero_block
export evaluate
export evaluate!
export return_type
export return_cache
export Field
export GenericField
export ConstantField
export constant_field
export FieldGradient
export FieldGradientArray
export ZeroField
export MockField
export MockFieldArray
export Point
export inverse_map
export AffineMap
export affine_map
export gradient
export ∇
export ∇∇
export gradient_type
export push_∇
export push_∇∇
export curl
export grad2curl
export laplacian
export divergence
export Δ
export ε
export symmetric_gradient
export test_field
export test_field_array
export linear_combination
export integrate
export IntegrationMap
include("FieldsInterfaces.jl")
include("FieldArrays.jl")
include("MockFields.jl")
include("AffineMaps.jl")
include("ApplyOptimizations.jl")
include("DiffOperators.jl")
include("AutoDiff.jl")
include("BlockFieldArrays.jl")
end