View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000735 | OpenFOAM | Bug | public | 2013-02-04 16:34 | 2013-02-12 09:05 |
Reporter | niklas.wikstrom | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Any | OS | Any | OS Version | Any |
Summary | 0000735: Probable error in cfdTools/.../fieldSources/.../ExplicitSetValue.C | ||||
Description | The explicitSetValue basic fieldSource does from cfdTools does not work. The (set)values List is initiated through a UIndirectList, which I guess tries to initiate list addresses defined by the indices in the cellSet? Since the values List is not a volField or internalField, this most often cause segfault. If the values list is declared and initiated simply as List<Type> values(cells_.size(), injectionRate_[fieldI]); it works fine, for my applications. | ||||
Steps To Reproduce | Modify e.g. scalarTransportFoam to include fieldSources. Add an explicitSetValuce source to constant/sourcesProperties and run. The result is crashes for various reasons. (sigFpe or sigSegv). | ||||
Additional Information | git diff ExplicitSetValue.C --- a/src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSetValue/ExplicitSetValue.C +++ b/src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSetValue/ExplicitSetValue.C @@ -81,9 +81,7 @@ void Foam::ExplicitSetValue<Type>::setValue << ">::setValue for source " << name_ << endl; } - List<Type> values(cells_.size()); - - UIndirectList<Type>(values, cells_) = injectionRate_[fieldI]; + List<Type> values(cells_.size(), injectionRate_[fieldI]); eqn.setValues(cells_, values); } | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-02-04 16:34 | niklas.wikstrom | New Issue | |
2013-02-12 09:05 |
|
Note Added: 0001899 | |
2013-02-12 09:05 |
|
Status | new => resolved |
2013-02-12 09:05 |
|
Fixed in Version | => 2.1.x |
2013-02-12 09:05 |
|
Resolution | open => fixed |
2013-02-12 09:05 |
|
Assigned To | => user2 |