|
[Sponsors] |
Where and how to create additional, temporary scalarFields? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 6, 2023, 16:10 |
Where and how to create additional, temporary scalarFields?
|
#1 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 250
Rep Power: 22 |
I need additional, temporary scalarFields of the same sizes and data types as diag() and lower() to store intermediate values during the creation of a custom preconditioner.
The sizes should be: Code:
const label nCells = rD_.size(); // for the scalarFields like diag() const label nFaces = solver_.matrix().upper().size(); // for the scalarFields similar to lower() |
|
|
|