-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cmask): add mask for calculation of amat terms (#215)
* feat(cmask): skip calculation of amat terms in *_fc and *_fn for masked connections The purpose of this PR is to allow another package or module to shutoff the flow connection between two cells. A connection can be masked by calling set_mask with the position within the ja and amat arrays of the masked connection. A value of zero means the connection is masked. If not used, the masked array points to ja, which has non-zero values for all connections. The first call to set_mask allocates new memory for the masked array of size nja and initializes all values to one.
- Loading branch information
1 parent
eb4b5ed
commit be8715f
Showing
3 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
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
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
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