|
[Sponsors] |
Can someone help to check this code on Roe solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 14, 2019, 21:20 |
Can someone help to check this code on Roe solver
|
#1 |
Member
Join Date: Feb 2019
Posts: 69
Rep Power: 7 |
The code is found here,
https://ir.cwi.nl/pub/10964/10964D.pdf I am trying to write my own code for Roe solver on Matlab and I have been using this paper as a guide. However when I run the code from this paper on Fortran 95, it ran into some floating point error. As I am not familiar with Fortran, I am wondering whether can someone help me check the validity of the code over here. I am working on the Sod shock tube in particular. |
|
June 15, 2019, 03:34 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,842
Rep Power: 73 |
Quote:
First, depending on the compiler, use all the options to debug the code. Disable all optimizations and use the checkbound for arrays and other setting for the floating points errors in the link procedure |
||
June 15, 2019, 04:20 |
|
#3 | |
Member
Join Date: Feb 2019
Posts: 69
Rep Power: 7 |
Quote:
|
||
June 15, 2019, 04:23 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,842
Rep Power: 73 |
Quote:
If you compile correctly the source code, there is no conflict in the FTN95 language. You need to check the error in the run-time procedure. Use the specific debug options in compiling the source, see here https://www.silverfrost.com/ftn95-he...lassified.aspx |
||
Tags |
fortran, riemann solvers, roe solver, shock, shock-tube |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The ANSYS CFX solver exited with return code 1 | kola77 | CFX | 24 | April 11, 2022 07:32 |
Compilation error for OpenFoam FSI solver with third party FEA code | danny261083 | OpenFOAM Running, Solving & CFD | 1 | October 6, 2017 09:50 |
Changing Temperature of patch within code of solver | SalvusApfel | OpenFOAM Pre-Processing | 1 | February 24, 2017 07:29 |
modify the source code of simpleSRFFoam solver | Pirlo | OpenFOAM Programming & Development | 0 | October 19, 2009 08:49 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 10:46 |