ENH: added binary IO for PackedList and compact ASCII format
The compact ASCII format is a block of index/value tuples for the non-zero entries: { (index1 value1) (index2 value2) (index3 value3) } For PackedList<1>, and thus PackedBoolList, the compact ASCII format is a block of indices for the non-zero entries: { index1 index2 index3 } Thus either of the following could be used - for PackedList<2>: - a list of all values: 16(0 3 0 2 0 0 3 1 0 0 0 0 0 0 0 1) - a block of index/value tuples: {(1 3) (3 2) (7 3) (8 1) (15 1)} For PackedList<1> and PackedBoolList, either of the following could be used: - a list of all values, using any valid bool representation: 16(0 1 0 true 0 0 t 1 0 n n 0 0 0 0 yes) - a block of the indices for non-zero entries: {1 3 7 8 15}
Showing
- applications/test/PackedList/PackedListTest.C 1 addition, 1 deletionapplications/test/PackedList/PackedListTest.C
- applications/test/PackedList1/PackedListTest1.C 50 additions, 50 deletionsapplications/test/PackedList1/PackedListTest1.C
- applications/test/PackedList4/PackedListTest4.C 56 additions, 21 deletionsapplications/test/PackedList4/PackedListTest4.C
- src/OpenFOAM/Make/files 1 addition, 1 deletionsrc/OpenFOAM/Make/files
- src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.C 2 additions, 316 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedBoolList.C
- src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H 8 additions, 43 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H
- src/OpenFOAM/containers/Lists/PackedList/PackedList.C 230 additions, 164 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedList.C
- src/OpenFOAM/containers/Lists/PackedList/PackedList.H 86 additions, 15 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedList.H
- src/OpenFOAM/containers/Lists/PackedList/PackedListCore.C 2 additions, 1 deletionsrc/OpenFOAM/containers/Lists/PackedList/PackedListCore.C
- src/OpenFOAM/containers/Lists/PackedList/PackedListI.H 169 additions, 27 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedListI.H
Please register or sign in to comment