forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a test that showing the jacobian assembly bug reported in idahola…
- Loading branch information
Showing
2 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
test/tests/kernels/array_kernels/array_custom_coupling_test.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
[Mesh] | ||
[square] | ||
type = GeneratedMeshGenerator | ||
nx = 4 | ||
ny = 4 | ||
dim = 2 | ||
[] | ||
[] | ||
|
||
|
||
[Variables] | ||
[u] | ||
order = FIRST | ||
family = LAGRANGE | ||
components = 2 | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[diff] | ||
type = ArrayDiffusion | ||
variable = u | ||
diffusion_coefficient = dc | ||
[] | ||
[reaction] | ||
type = ArrayReaction | ||
variable = u | ||
reaction_coefficient = rc | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[left] | ||
type = ArrayVacuumBC | ||
variable = u | ||
boundary = 1 | ||
[] | ||
|
||
[right] | ||
type = ArrayPenaltyDirichletBC | ||
variable = u | ||
boundary = 2 | ||
value = '1 2' | ||
penalty = 4 | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[dc] | ||
type = GenericConstantArray | ||
prop_name = dc | ||
prop_value = '1 1' | ||
[] | ||
[rc] | ||
type = GenericConstant2DArray | ||
prop_name = rc | ||
prop_value = '1 0; -0.1 1' | ||
[] | ||
[] | ||
|
||
[Preconditioning] | ||
[smp] | ||
type = SMP | ||
off_diag_row = 'u_0 u_1' | ||
off_diag_column = 'u_0 u_1' | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters