Skip to content

Commit 3c0682a

Browse files
committed
Resolving conflicts with new version of TensorValues 0.3.5
1 parent 32175fc commit 3c0682a

File tree

5 files changed

+24
-52
lines changed

5 files changed

+24
-52
lines changed

Manifest.toml

+17-12
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ version = "0.2.0"
4747

4848
[[Compat]]
4949
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"]
50-
git-tree-sha1 = "84aa74986c5b9b898b0d1acaf3258741ee64754f"
50+
git-tree-sha1 = "ed2c4abadf84c53d9e58510b5fc48912c2336fbb"
5151
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
52-
version = "2.1.0"
52+
version = "2.2.0"
5353

5454
[[DataStructures]]
5555
deps = ["InteractiveUtils", "OrderedCollections", "Random", "Serialization", "Test"]
@@ -122,10 +122,10 @@ uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
122122
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
123123

124124
[[LightXML]]
125-
deps = ["BinaryProvider", "Libdl", "Test"]
126-
git-tree-sha1 = "aeec7a341652d47bc773475a42952fa78eccd7cc"
125+
deps = ["BinaryProvider", "Libdl"]
126+
git-tree-sha1 = "be855e3c975b89746b09952407c156b5e4a33a1d"
127127
uuid = "9c8b4983-aa76-5018-a973-4c85ecc9e179"
128-
version = "0.8.0"
128+
version = "0.8.1"
129129

130130
[[LineSearches]]
131131
deps = ["LinearAlgebra", "NLSolversBase", "NaNMath", "Parameters", "Printf", "Test"]
@@ -149,9 +149,9 @@ uuid = "a63ad114-7e13-5084-954f-fe012c677804"
149149

150150
[[NLSolversBase]]
151151
deps = ["Calculus", "DiffEqDiffTools", "DiffResults", "Distributed", "ForwardDiff"]
152-
git-tree-sha1 = "c430bd3f2dfcffc30688cf4a9cb61535e8d85f65"
152+
git-tree-sha1 = "f1b8ed89fa332f410cfc7c937682eb4d0b361521"
153153
uuid = "d41bc354-129a-5804-8e4c-c37616107c6c"
154-
version = "7.4.1"
154+
version = "7.5.0"
155155

156156
[[NLsolve]]
157157
deps = ["DiffEqDiffTools", "Distances", "ForwardDiff", "LineSearches", "LinearAlgebra", "NLSolversBase", "Printf", "Reexport"]
@@ -188,10 +188,10 @@ deps = ["Dates", "LibGit2", "Markdown", "Printf", "REPL", "Random", "SHA", "UUID
188188
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
189189

190190
[[Polynomials]]
191-
deps = ["LinearAlgebra", "SparseArrays", "Test"]
192-
git-tree-sha1 = "62142bd65d3f8aeb2226ec64dd8493349147df94"
191+
deps = ["LinearAlgebra", "RecipesBase"]
192+
git-tree-sha1 = "f7c0c07e82798aef542d60a6e6e85e39f4590750"
193193
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
194-
version = "0.5.2"
194+
version = "0.5.3"
195195

196196
[[Printf]]
197197
deps = ["Unicode"]
@@ -211,6 +211,11 @@ uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
211211
deps = ["Serialization"]
212212
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
213213

214+
[[RecipesBase]]
215+
git-tree-sha1 = "7bdce29bc9b2f5660a6e5e64d64d91ec941f6aa2"
216+
uuid = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
217+
version = "0.7.0"
218+
214219
[[Reexport]]
215220
deps = ["Pkg"]
216221
git-tree-sha1 = "7b1d07f411bc8ddb7977ec7f377b97b158514fe0"
@@ -264,9 +269,9 @@ version = "0.1.4"
264269

265270
[[TensorValues]]
266271
deps = ["LinearAlgebra", "StaticArrays"]
267-
git-tree-sha1 = "a998c534421283d1ad7cec699964600223be5357"
272+
git-tree-sha1 = "f1f46eea2c9991f7a051d647e37ece33a7d88b78"
268273
uuid = "31c64edf-cdeb-50e4-845d-ed2334360c20"
269-
version = "0.3.4"
274+
version = "0.3.5"
270275

271276
[[Test]]
272277
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
### Deprecated
1212
### Fixed
1313

14+
## [0.5.2] - 2019-10-21
15+
### Fixed
16+
- Incompatibility problem with `TensorValues` version 0.3.5.
17+
1418
## [0.5.1] - 2019-10-03
1519
### Added
1620
- Pretty printing for the types most exposed to users. Since PR [#109](https://github.com/gridap/Gridap.jl/pull/109).

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Gridap"
22
uuid = "56d4f2e9-7ea1-5844-9cf6-b9c51ca7ce8e"
33
authors = ["Santiago Badia <sbadia@cimne.upc.edu>", "Francesc Verdugo <fverdugo@cimne.upc.edu>"]
4-
version = "0.5.1"
4+
version = "0.5.2"
55

66
[deps]
77
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
@@ -30,7 +30,7 @@ QuadGK = "2.1.0"
3030
Reexport = "0.2.0"
3131
StaticArrays = "0.10.3"
3232
TensorPolynomialBases = "0.1.4"
33-
TensorValues = "0.3.4"
33+
TensorValues = "0.3.5"
3434
UnstructuredGrids = "0.2.2"
3535
WriteVTK = "1.2.0"
3636
julia = "1.1"

src/Fields/FieldValues.jl

+1-32
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ export normalvec
1414
export trace
1515
export tr
1616
export symmetic_part
17+
export mutable
1718

1819
import TensorValues: meas
19-
import Base: adjoint
20-
import LinearAlgebra: tr
21-
import LinearAlgebra: dot
22-
import LinearAlgebra: norm
23-
2420

2521
"""
2622
Type representing all possible field value types
@@ -55,31 +51,4 @@ function meas(v::MultiValue{Tuple{2,3}})
5551
sqrt(n*n)
5652
end
5753

58-
@generated function trace(v::TensorValue{D}) where D
59-
str = join([" v.array.data[$i+$((i-1)*D)] +" for i in 1:D ])
60-
Meta.parse(str[1:(end-1)])
61-
end
62-
63-
@inline tr(v::TensorValue) = trace(v)
64-
65-
@generated function symmetic_part(v::TensorValue{D}) where D
66-
str = "("
67-
for j in 1:D
68-
for i in 1:D
69-
str *= "0.5*v.array.data[$i+$((j-1)*D)] + 0.5*v.array.data[$j+$((i-1)*D)], "
70-
end
71-
end
72-
str *= ")"
73-
Meta.parse("TensorValue($str)")
74-
end
75-
76-
function adjoint(v::TensorValue)
77-
t = adjoint(v.array)
78-
TensorValue(t)
79-
end
80-
81-
@inline dot(u::VectorValue,v::VectorValue) = inner(u,v)
82-
83-
@inline norm(u::VectorValue) = sqrt(inner(u,u))
84-
8554
end # module

src/Gridap.jl

-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ __precompile__()
22

33
module Gridap
44

5-
# TODO move to TensorValues
6-
using StaticArrays
7-
using TensorValues
8-
export mutable
9-
mutable(::Type{MultiValue{S,T,N,L}}) where {S,T,N,L} = MArray{S,T,N,L}
10-
115
using Reexport
126

137
include("Utils/files.jl")

0 commit comments

Comments
 (0)