Skip to content

Commit

Permalink
Merge branch 'main' into dev/scotch7_support
Browse files Browse the repository at this point in the history
  • Loading branch information
sblauth authored Sep 30, 2024
2 parents d552bbb + b7958b6 commit 5bd1e03
Show file tree
Hide file tree
Showing 160 changed files with 1,169 additions and 6,676 deletions.
26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/ci-cd.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/development-related-matters.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/documentation.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/question---support-request.md

This file was deleted.

17 changes: 17 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
changelog:
exclude:
authors:
- snyk-bot
categories:
- title: New Features and Improvements
labels:
- enhancement
- title: Bug Fixes
labels:
- bug
- title: Configuration changes
labels:
- config
- title: Changes to the documentation
labels:
- documentation
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
TAG_PREFIX: ${{ steps.tag_name.outputs.TAG_PREFIX }}
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Get tag name
id: tag_name
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Log into the Dockerhub registry
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Log in to the Container registry
uses: docker/login-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ossar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

# Ensure a compatible version of dotnet is installed.
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
rm -R /home/mambauser/cashocs
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Install cashocs
shell: bash
Expand All @@ -45,7 +45,7 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0


- name: Get tag name
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Set up Python 3.11
uses: actions/setup-python@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
rm -R /home/mambauser/cashocs
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Install cashocs
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_serial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
hooks:
- id: pyroma
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
Expand All @@ -21,7 +21,7 @@ repos:
additional_dependencies: ["tomli"]
files: cashocs/
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
rev: 7.1.1
hooks:
- id: flake8
files: cashocs/
Expand All @@ -31,12 +31,12 @@ repos:
- id: bandit
files: cashocs/
- repo: https://github.com/PyCQA/pylint
rev: v3.2.5
rev: v3.2.7
hooks:
- id: pylint
files: cashocs/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.2
hooks:
- id: mypy
files: cashocs/
Expand Down
4 changes: 2 additions & 2 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"description": "<p>cashocs is a computational, adjoint-based shape optimization and optimal control software.</p>",
"license": "GPL-3.0+",
"title": "cashocs v2.2.0-dev",
"version": "v2.2.0-dev",
"title": "cashocs v2.3.0-dev",
"version": "v2.3.0-dev",
"upload_type": "software",
"creators": [
{
Expand Down
13 changes: 5 additions & 8 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ here as they add new functionality or might change the API. For a documentation
of the maintenance releases, please take a look at
`<https://github.com/sblauth/cashocs/releases>`_.


2.2.0 (in development)
2.3.0 (in development)
----------------------


2.2.0 (August 28, 2024)
-----------------------

* Add a wrapper for PETSc's SNES solver for nonlinear equations. This is used internally in cashocs whenever possible. For the solution of the state system, our own Newton solver is the default for backwards compatibility. Users can use the new SNES backend by specifying :ini:`backend = petsc` in the Section StateSystem of the configuration.

* Allows nesting of PETSc Fieldsplit PCs with the command line option "pc_fieldsplit_%d_fields <a,b,...>, as explained at `<https://petsc.org/main/manualpages/PC/PCFieldSplitSetFields/>`_

* Increase the precision of the Gmsh output from cashocs

* Add mesh quality constraints for shape optimization: These ensure that the angles of the (solid) angles of triangles and tetrahedrons cannot fall below a specified threshold.

* New configuration file parameters:

* Section StateSystem
Expand All @@ -28,10 +29,6 @@ of the maintenance releases, please take a look at

* :ini:`test_for_intersections` is used to disable the (post mesh movement) check for intersections of the mesh, which ensures physically reasonable designs. This should not be set to `False`.

* Section MeshQualityConstraints

* This section includes parameters for the new mesh quality constraints for shape optimization. These are described in the documentation at `<https://cashocs.readthedocs.io/en/stable/user/demos/shape_optimization/doc_config/#section-meshqualityconstraints>`_



2.1.0 (February 6, 2024)
Expand Down
4 changes: 2 additions & 2 deletions cashocs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down Expand Up @@ -60,7 +60,7 @@
from cashocs.nonlinear_solvers import picard_iteration
from cashocs.nonlinear_solvers import snes_solve

__version__ = "2.2.0-dev"
__version__ = "2.3.0-dev"

__citation__ = """
@Article{Blauth2021cashocs,
Expand Down
2 changes: 1 addition & 1 deletion cashocs/_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down
2 changes: 1 addition & 1 deletion cashocs/_cli/_convert.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down
2 changes: 1 addition & 1 deletion cashocs/_cli/_extract_mesh.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down
2 changes: 1 addition & 1 deletion cashocs/_constraints/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down
2 changes: 1 addition & 1 deletion cashocs/_constraints/constrained_problems.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down
2 changes: 1 addition & 1 deletion cashocs/_constraints/constraints.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down
2 changes: 1 addition & 1 deletion cashocs/_constraints/solvers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down
2 changes: 1 addition & 1 deletion cashocs/_database/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down
2 changes: 1 addition & 1 deletion cashocs/_database/database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2020-2024 Sebastian Blauth
# Copyright (C) 2020-2024 Fraunhofer ITWM and Sebastian Blauth
#
# This file is part of cashocs.
#
Expand Down
Loading

0 comments on commit 5bd1e03

Please sign in to comment.