Skip to content

Commit

Permalink
Merge pull request #49 from gridap/release-0.6
Browse files Browse the repository at this point in the history
Release 0.6.1
  • Loading branch information
fverdugo committed Jun 24, 2021
2 parents 4e87b63 + 99514a5 commit d6c352d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.1] - 2021-06-24

### Added
- Method `AnalyticalGeometry(::Function)` to simplify the setup of geometries from user-defined functions.
- `export AnalyticalGeometry` in `GridapEmbedded`.

## [0.6.0] - 2021-01-12

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GridapEmbedded"
uuid = "8838a6a3-0006-4405-b874-385995508d5d"
authors = ["Francesc Verdugo <[email protected]>"]
version = "0.6.0"
version = "0.6.1"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
1 change: 1 addition & 0 deletions src/Exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ end
@publish Interfaces OUT

@publish LevelSetCutters LevelSetCutter
@publish LevelSetCutters AnalyticalGeometry
@publish LevelSetCutters popcorn
@publish LevelSetCutters doughnut
@publish LevelSetCutters tube
Expand Down
5 changes: 5 additions & 0 deletions src/LevelSetCutters/AnalyticalGeometries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ struct BoundingBox{D,T}
pmax::Point{D,T}
end

function AnalyticalGeometry(f::Function)
tree = Leaf((f,string(nameof(f)),nothing))
AnalyticalGeometry(tree)
end

# Factories

function doughnut(R,r;x0=zero(Point{3,typeof(R)}),name="doughnut")
Expand Down
1 change: 1 addition & 0 deletions src/LevelSetCutters/LevelSetCutters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ using Gridap.Polynomials
using Gridap.Visualization

export LevelSetCutter
export AnalyticalGeometry
export doughnut
export popcorn
export tube
Expand Down
6 changes: 6 additions & 0 deletions test/LevelSetCuttersTests/AnalyticalGeometriesTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ end

tmpdir() do d

geo0 = AnalyticalGeometry(x->.9*x[1]^2+1.1*x[2]^2-0.6)
model = CartesianDiscreteModel((-1,1,-1,1),(10,10))
cutgeo = cut(model,geo0)
Γ = EmbeddedBoundary(cutgeo)
writevtk(Γ,joinpath(d,"user"))

geo0 = popcorn()
test_geometry(geo0)

Expand Down

2 comments on commit d6c352d

@fverdugo
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/39561

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.1 -m "<description of version>" d6c352de478226e32b2c711b581798a1b7a89dc0
git push origin v0.6.1

Please sign in to comment.