CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Different answer on same algorithm in python and c++

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2023, 13:30
Default
  #21
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by siamak View Post
@sbaffini
Thanks for your answer
I think You got the point, I tried to check the L1 and L2, but it seems after some iterations it goes behind my machine's precision. I have to check it more carefully to be sure about it.



To be honest, I suspect the issue is in some other part of youre codes.



On the other hand, you can also code a simple matrix-vector product using a "1.0" entry for all and compare C++ and python results.
siamak likes this.
FMDenaro is offline   Reply With Quote

Reply

Tags
c++ code, numerical computation, python code


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
Error in enabling the python wrapper Jinn SU2 Installation 2 April 23, 2022 13:52
[PyFoam] Using pyFoamPlotWatcher.py To Plot Residuals m_ridzon OpenFOAM Community Contributions 22 January 26, 2021 18:48
Running Fluent from Python: UDF Compilation problems Ames Fluent UDF and Scheme Programming 5 November 16, 2020 06:12
PISO algorithm instability in Python Nduna Main CFD Forum 1 March 15, 2016 08:26
[OpenFOAM] paraview v4 - building with python - OF2.3.0, PVv4, Python 2.7 aylalisa ParaView 4 June 13, 2014 08:52


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