CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Segmentation fault (core dumped) (https://www.cfd-online.com/Forums/openfoam-programming-development/235659-segmentation-fault-core-dumped.html)

Kummi April 23, 2021 10:28

Segmentation fault (core dumped)
 
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


All times are GMT -4. The time now is 13:55.