File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11from collections .abc import Callable
2+ from typing import Optional
23
34import dolfinx
45import numpy as np
56import ufl
67from dolfinx import fem
78
8- from typing import Optional
9-
109
1110def as_fenics_constant (
1211 value : float | int | fem .Constant , mesh : dolfinx .mesh .Mesh
Original file line number Diff line number Diff line change 2121from festim import (
2222 reaction as _reaction ,
2323)
24+ from festim import source as _source
2425from festim import (
2526 species as _species ,
2627)
2930)
3031from festim .helpers import as_fenics_constant
3132from festim .mesh import Mesh
32- from festim import source as _source
3333
34- __all__ = ["HydrogenTransportProblem " , "HTransportProblemDiscontinuous " ]
34+ __all__ = ["HTransportProblemDiscontinuous " , "HydrogenTransportProblem " ]
3535
3636
3737class HydrogenTransportProblem (problem .ProblemBase ):
@@ -1063,7 +1063,7 @@ def create_source_values_fenics(self):
10631063 # create value_fenics for all F.ParticleSource objects
10641064 if isinstance (source , _source .ParticleSource ):
10651065 V = dolfinx .fem .functionspace (self .mesh .mesh , ("Lagrange" , 1 ))
1066-
1066+
10671067 source .value .convert_input_value (
10681068 mesh = self .mesh .mesh ,
10691069 function_space = V ,
You can’t perform that action at this time.
0 commit comments