|
[Sponsors] |
November 8, 2019, 11:46 |
How to use labelUList?
|
#1 |
New Member
samuel
Join Date: Oct 2019
Posts: 15
Rep Power: 7 |
Dear all:
It seems that labelUList can be constructed by constructor labelUList(val,size) which can be seen as following: Code:
template<class T> inline Foam::UList<T>::UList(T* __restrict__ v, label size) : size_(size), v_(v) {} Code:
labelUlist marks(0,50); Code:
Info << marks[3] <<endl; marks[4]=5; Code:
#0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigSegv::sigHandler(int) at ??:? #2 ? in /lib/x86_64-linux-gnu/libc.so.6 #3 ? in ~/OpenFOAM/saumuel-v1806/platforms/linux64GccDPInt64Opt/bin/IBIcoFoamFD #4 __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6 #5 ? in ~/OpenFOAM/saumuel-v1806/platforms/linux64GccDPInt64Opt/bin/IBIcoFoamFD Segmentation fault (core dumped) Thank you samuel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ldUMatrix building indexing in parallel | fedvasu | OpenFOAM Programming & Development | 2 | April 28, 2019 15:20 |
next to wall gradient correction for SGS-model BC | ThomasHultsch | OpenFOAM Programming & Development | 2 | April 6, 2018 12:55 |
[Commercial meshers] star-ccm mesh to O\/F | DLC | OpenFOAM Meshing & Mesh Conversion | 77 | September 19, 2016 10:25 |
How to read freestream velocity vector in a new boundary condition? | robyTKD | OpenFOAM Programming & Development | 5 | April 24, 2013 10:43 |