CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Segmentation fault (core dumped)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2021, 10:28
Question Segmentation fault (core dumped)
  #1
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 349
Rep Power: 11
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
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
Kummi is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] Paraview segmentation fault core dumped GLfast80 ParaView 0 March 13, 2021 12:53
Segmentation fault (core dumped) prashantgoel CONVERGE 2 May 26, 2020 12:48
[OpenFOAM] paraview parafoam segmentation fault (core dumped) RicardoLB ParaView 3 April 28, 2020 20:07
[OpenFOAM.org] Paraview 5.4 in shell environment of5x - Segmentation fault (core dumped) dslbkxd OpenFOAM Installation 1 February 3, 2018 00:56
Segmentation fault (core dumped) when changing pressure BC jptorol OpenFOAM Running, Solving & CFD 0 September 25, 2013 18:05


All times are GMT -4. The time now is 09:37.