time | calls | line |
---|
| | 1 | function [bcD, bcO, bcN] = init_bcs(bc)
|
| | 2 | %function [bcD, bcO, bcN] = init_bcs(bc)
|
| | 3 | %
|
| | 4 | % This function intitialized the boundary value arrays
|
| | 5 | %
|
| | 6 | % INPUTS:
|
| | 7 | % bc: Array giving maximum id of each boundary type.
|
| | 8 | % This array is outputted from set_bcs.m
|
| | 9 | %
|
| | 10 | % OUTPUTS:
|
| | 11 | % bcD: Boundary values for Dirichlet boundary conditions
|
| | 12 | % bcO: Boundary values for Open boundary conditions
|
| | 13 | % bcN: Boundary values for Neumann boundary conditions
|
| | 14 | %
|
| | 15 | % See also: set_bcs.m
|
| | 16 | %
|
| | 17 | % Written by: Matt Ueckermann
|
| | 18 |
|
| 4 | 19 | bcD = zeros(bc(2), 1);
|
| 4 | 20 | bcO = ((bc(1) + 1) : bc(2))';
|
| 4 | 21 | bcN = zeros(bc(3) - bc(2), 1);
|