-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from gridap/extend_assembler_to_multiple_fields
This PR extends the FE assembly routines to support weak forms with several terms, which are integrated in different domains. E.g., problems with Neumann BCs. This PR addresses issue #42
- Loading branch information
Showing
16 changed files
with
271 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module IdentityCellNumbers | ||
|
||
using Gridap | ||
|
||
export IdentityCellNumber | ||
import Gridap: reindex | ||
import Base: size | ||
import Base: getindex | ||
|
||
struct IdentityCellNumber{T} <: IndexCellValue{T,1} | ||
length::Int | ||
end | ||
|
||
function IdentityCellNumber(::Type{T},l::Integer) where T <: Integer | ||
IdentityCellNumber{T}(l) | ||
end | ||
|
||
function getindex(c::IdentityCellNumber{T},i::Integer) where T | ||
@assert i > 0 | ||
@assert i <= c.length | ||
j::T = i | ||
j | ||
end | ||
|
||
size(c::IdentityCellNumber) = (c.length,) | ||
|
||
function reindex(values::IndexCellValue, indices::IdentityCellNumber) | ||
@assert length(values) == length(indices) | ||
values | ||
end | ||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.