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

How to use Openfoam with Clion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2018, 14:08
Default How to use Openfoam with Clion
  #1
New Member
 
Matte Wang
Join Date: Sep 2018
Posts: 13
Rep Power: 7
Aunura is on a distinguished road
I saw some introductions about how to use Openfoam with some IDE(qt creator eclipse) in Openfoam Wiki. However, I don't find any information about Clion.
Are there some problems in Clion When combining the Openfoam?

Could anyone tell me the reason or give me some introductions?

Another question is that is qt creator performing well when it combines with openfoam?
Aunura is offline   Reply With Quote

Old   April 17, 2019, 15:45
Default CLion & OpenFOAM
  #2
Member
 
Ilya
Join Date: Dec 2011
Location: Russia
Posts: 97
Blog Entries: 41
Rep Power: 14
skeptik is on a distinguished road
Turns out CLion is suited for CMake.


I can at least build a library after launching from terminal with OpenFOAM environment and setting up custom toolchain with custom targets.


Looks like better option is KDevelop or Emacs.
__________________
practice makes perfect
skeptik is offline   Reply With Quote

Old   November 14, 2019, 09:15
Default Clion for OpenFOAM
  #3
New Member
 
SSSSS
Join Date: Jun 2011
Posts: 29
Rep Power: 14
doctorWho is on a distinguished road
Clion can read compile_commands.json as well as CMakeList.txt.
Once compile_commands.json is read, you can have fun with Clion.
I am not sure about compile in Clion cause I only use Clion when intellisense is needed.


compile_commands.json can be generated with Bear (Build EAR).
Instead of use wmake command, use bear wmake then you can have compile_commands.json.
doctorWho is offline   Reply With Quote

Reply

Tags
clion


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Foundation releases OpenFOAMŪ 3.0.0 CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 1 November 7, 2015 15:16
OpenFOAM Foundation Releases OpenFOAM v2.3.0 opencfd OpenFOAM Announcements from OpenFOAM Foundation 3 December 23, 2014 03:43
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


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