Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kumiori committed Dec 6, 2024
1 parent c0fb2e4 commit 13fc1d5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ src/irrevolutions/test/output/*
**/output/**
**egg-info**
.venv/**
TODO/**
7 changes: 6 additions & 1 deletion paper/addendum.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@ affiliations:
index: 1
- name: Institute of Mathematics for Industry, Kyushu University, 744 Motooka, Nishi-ku, Fukuoka, 819-0395, Japan.
index: 2
date: 1 August 2024
date: 5 December 2024
bibliography: paper.bib
geometry: 'left=1.9cm,right=1.9cm,top=1.9cm,bottom=1.9cm'
output: pdf_document
---

Authors: Andrés A León Baldelli[^1], Pierluigi Cesana[^2]

[^1]: $\partial$'Alembert Institute, CNRS, Sorbonne Universités, Place Jussieu 75252 Paris Cedex 05, France
[^2]: Institute of Mathematics for Industry, Kyushu University, 744 Motooka, Nishi-ku, Fukuoka, 819-0395, Japan

## Verification

We benchmark our solvers against a nontrivial 1d problem (cf. `test/test_rayleigh.py` in the code repository), namely we compute
Expand Down
23 changes: 19 additions & 4 deletions test/test_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@
import ufl
import yaml
from dolfinx.common import list_timings
from dolfinx.fem import (Constant, Function, assemble_scalar, dirichletbc,
form, locate_dofs_geometrical, set_bc)
from dolfinx.fem import (
Constant,
Function,
assemble_scalar,
dirichletbc,
form,
locate_dofs_geometrical,
set_bc,
)
from dolfinx.fem.petsc import assemble_vector
from dolfinx.io import XDMFFile
from mpi4py import MPI
Expand All @@ -28,9 +35,16 @@
from irrevolutions.algorithms.so import BifurcationSolver, StabilitySolver
from irrevolutions.solvers import SNESSolver
from irrevolutions.solvers.function import vec_to_functions
from irrevolutions.utils import (ColorPrint, _logger, _write_history_data,
history_data, norm_H1, norm_L2)
from irrevolutions.utils import (
ColorPrint,
_logger,
_write_history_data,
history_data,
norm_H1,
norm_L2,
)
from irrevolutions.utils.plots import plot_AMit_load, plot_energies

#
from irrevolutions.utils.viz import plot_profile

Expand Down Expand Up @@ -704,6 +718,7 @@ def test_1d():

ColorPrint.print_bold(f"===================-{signature}-=================")
ColorPrint.print_bold(f"===================-{_storage}-=================")

list_timings(MPI.COMM_WORLD, [dolfinx.common.TimingType.wall])

from irrevolutions.utils import table_timing_data
Expand Down

0 comments on commit 13fc1d5

Please sign in to comment.