Skip to content

Commit

Permalink
Merge pull request #21 from gridap/p4est-2.3+
Browse files Browse the repository at this point in the history
Changes to constants
  • Loading branch information
amartinhuertas authored Mar 27, 2024
2 parents 4309c67 + b9e1600 commit ac20d26
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
name: Tests ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
env:
P4EST_ROOT_DIR: "/opt/p4est/2.2/"
P4EST_ROOT_DIR: "/opt/p4est/2.3.6/"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -37,10 +37,10 @@ jobs:
sudo apt-get install -y wget gfortran g++ openmpi-bin openmpi-common libopenmpi-dev
- name: Install p4est
run: |
# Install p4est 2.2 from sources
# Install p4est 2.3.6 from sources
CURR_DIR=$(pwd)
PACKAGE=p4est
VERSION=2.2
VERSION=2.3.6
INSTALL_ROOT=/opt
P4EST_INSTALL=$INSTALL_ROOT/$PACKAGE/$VERSION
TAR_FILE=$PACKAGE-$VERSION.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
authors = ["Victor Sande <[email protected]>", "Alberto F. Martin <[email protected]>"]
name = "P4est_wrapper"
uuid = "3743d7c0-8adf-11ea-380b-7d33b0ecc1da"
version = "0.2.1"
version = "0.2.2"

[compat]
CEnum = "0.4"
MPI = "0.20"
P4est_jll = "2.2.0"
P4est_jll = "2.3.0"
julia = "1.0"

[deps]
Expand Down
11 changes: 7 additions & 4 deletions src/bindings/p8est_common.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Automatically generated using Clang.jl


const P8EST_MAXLEVEL = 19
const P8EST_QMAXLEVEL = 18
const P8EST_OLD_MAXLEVEL = 19
const P8EST_OLD_QMAXLEVEL = 18

const P8EST_MAXLEVEL = 30
const P8EST_QMAXLEVEL = 29

# Skipping MacroDefinition: P8EST_ROOT_LEN ( ( p4est_qcoord_t ) 1 << P8EST_MAXLEVEL )
# Skipping MacroDefinition: P8EST_QUADRANT_LEN ( l ) ( ( p4est_qcoord_t ) 1 << ( P8EST_MAXLEVEL - ( l ) ) )
Expand All @@ -26,7 +29,7 @@ struct p8est_tree
first_desc::p8est_quadrant_t
last_desc::p8est_quadrant_t
quadrants_offset::p4est_locidx_t
quadrants_per_level::NTuple{20, p4est_locidx_t}
quadrants_per_level::NTuple{31, p4est_locidx_t}
maxlevel::Int8
end

Expand Down Expand Up @@ -106,7 +109,7 @@ const p8est_refine_t = Ptr{Cvoid}
const p8est_coarsen_t = Ptr{Cvoid}
const p8est_weight_t = Ptr{Cvoid}
const P8EST_DIM = 3
const P8EST_FACES = 2P8EST_DIM
const P8EST_FACES = 2*P8EST_DIM
const P8EST_CHILDREN = 8
const P8EST_HALF = P8EST_CHILDREN / 2
const P8EST_EDGES = 12
Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,19 @@ if P4est_wrapper.P4EST_FOUND
@show cmd
run(cmd)
end
@testset "Example lnodes 2D" begin
cmd = `$mpiexec -n $nprocs $(extra_args) $(julia) --project=$repodir $(joinpath(dir, "example_lnodes_2d.jl"))`
@show cmd
run(cmd)
end
@testset "Example lnodes 3D" begin
cmd = `$mpiexec -n 1 $(extra_args) $(julia) --project=$repodir $(joinpath(dir, "example_lnodes_3d.jl"))`
@show cmd
run(cmd)
end
@testset "Example lnodes 2D+1D" begin
cmd = `$mpiexec -n $nprocs $(extra_args) $(julia) --project=$repodir $(joinpath(dir, "example_lnodes_2d+1d.jl"))`
@show cmd
run(cmd)
end
end

2 comments on commit ac20d26

@amartinhuertas
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/103711

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

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.2.2 -m "<description of version>" ac20d26615648d956415fad7327bc3c73dc14587
git push origin v0.2.2

Please sign in to comment.