April 23, 2021, 10:28
|
Segmentation fault (core dumped)
|
#1
|
Senior Member
Kumaresh
Join Date: Oct 2016
Posts: 352
Rep Power: 11
|
Hello Foamers,
When I try to introduce the following code, I got the segmentation fault.
Quote:
template<class thermo>
inline Foam::scalar Foam::conductivitySolidTransport<thermo>::CO
( const scalar T ) const
{
return
(
min(CO(T), 0.01295*pow(-((T-623)/420),2.63))
);
}
|
The problem is mainly due to the usage of min in return statement. If min is not implemented, then no such complications.
Could someone tell me how to implement min in the return statement in appropriate way ?
Thank you
|
|
|