CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

SU2 does not rebuild some codes on latest Develop version

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2020, 01:16
Default SU2 does not rebuild some codes on latest Develop version
  #1
New Member
 
Marrie
Join Date: Dec 2014
Posts: 13
Rep Power: 0
manle0312 is on a distinguished road
Greetings,

I've been playing around with the SU2 code to try to add things and contribute. On the latest develop branch, as of April 15th 2020, some codes do not recompile after I make some changes. I am not sure if this will affect other files too but currently, I have problem with the file SU2_SOL.cpp within SU2_SOL/src directory. My test problem is the Inviscid Bump.


Steps to reproduce

1. Go to SU2_SOL/src/SU2_SOL.cpp, I change just the string at line 725, which outputs "Solver Postprocessing". I didnt want to break other things so I figure changing string is a safe option.

2. In other words, I change:
Code:
cout << endl <<"------------------------- Solver Postprocessing -------------------------" << endl;
into something like this

Code:
cout << endl <<"------------------------- CHANGE Solver Postprocessing -------------------------" << endl;
so that when the code finishes running, I can tell that my edits are saved.

3. I also changed the output string of the file CSinglezoneDriver.cpp within SU2_CFD/src/drivers directory. This is to check if only SU2_SOL.cpp are affected.

For this file, I changed line 270 which outputs "Solver Exit" like this:
Code:
cout << endl << "----------------------------- Solver Exit -------------------------------" << endl;
into something like this
Code:
cout << endl <<  "---------------------------CHANGE Solver Exit  -------------------------------" << endl;
4. Then I go to the main directory of the SU2 and rebuild meson with:

Code:
./meson.py build --reconfigure --buildtype=debug
There are no errors.

5. Then to reinstall the code, I do:
Code:
./ninja -C build install
Again, no errors. All files are installed normally.

6. I run the code to solve the Inviscid Bump using:
Code:
SU2_CFD inv_channel.cfg
Results
Code runs and exits normal. The file CSinglezoneDriver.cpp is updated, but not the SU2_SOL.cpp. I tried removing the build folder to do a fresh build and install, still the same problem. The only thing I changed within the config file is setting ROE as flow numerical method (line 145). I also changed the iteration on line 102 to like 2 iteration, because I only want to see if the files get updated. I have not created an Issue on Github yet, just want to know the suggestions here first. Please let me know and I appreciate the inputs
manle0312 is offline   Reply With Quote

Old   April 16, 2020, 14:46
Default
  #2
New Member
 
Marrie
Join Date: Dec 2014
Posts: 13
Rep Power: 0
manle0312 is on a distinguished road
I figured out the problem. I was editing the wrong file, every solver has the "Exit" and "Deleted" messages printed out. I was editting the SU2_SOL.cpp, but in fact the file that needs to be changed is the CDrivers.cpp within SU2_CFD.
manle0312 is offline   Reply With Quote

Reply

Tags
build, compile from source, update


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
Problems with CGNS mesh and develop version BopngMa SU2 2 September 15, 2015 17:38
Porting FoamX to cygwin using the latest version of MICO 7islands OpenFOAM Pre-Processing 17 December 31, 2008 02:27
What is Fluent's latest version number and service JollyP FLUENT 1 October 30, 2006 17:34
The latest version Ivan Siemens 1 August 29, 2006 10:28
latest version of fluent masood yooceframandi FLUENT 10 January 22, 2005 19:21


All times are GMT -4. The time now is 10:39.