Re: [DuMux] How to setup dumux in an IDE?

2021-09-30 Thread Christoph Grüninger

Hi Siroos,

you could use any IDE. Usually they have difficulties with DuMuX, 
because they don't understand the dependencies to the Dune modules.


You could build Dune and DuMuX using dunecontrol, and open the DuMuX 
source folder within your IDE. If your IDE supports CMake, it should be 
able to handle your build directory and it should be able to use the 
right target (make, ninja, msbuild, ...).
This will give you most of the advantages of an IDE, without full 
assistance of Dune classes and functions. In general, IDEs struggle with 
template meta programming and DuMuX' property system.


Bye
Christoph

Am 30.09.21 um 12:37 schrieb Siroos Azizmohammadi:

Hello,

As I am quite new in dumux and Linux too, I was wondering if there are 
any instructions to setup/compile dumux in Qt, Eclipse, or any other IDEs.


Best regards,

_

Siroos Azizmohammadi , PhD



--
Als wär es nix, leb' ich von [IT] und mach' nur, was ich lieb'
Lebe wie im Paradies, womit hab' ich das verdient?
Die Wahrheit ist: Hab' ich nicht, ich bin nur reicher beschenkt
Als jemand in einem armen Land mit dem gleichen Talent
[frei nach Tua von Die Orsons - Oioioiropa]
___
DuMux mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux


Re: [DuMux] How to setup dumux in an IDE?

2021-09-30 Thread Nikolai Andrianov
Dear Siroos,

You can setup your debugging environment for example using VS Code, 
https://code.visualstudio.com.

For that, you will need to create a folder called .vscode in the folder, where 
the executable is located (remember to compile it with the -g option which 
allows for debugging). Then, place the files launch.json and tasks.json there; 
see example files attached.

Now when you start VS Code by typing "code ." in the folder with the executable 
you can compile your module using Terminal->Run Build Task, and debug it by 
clicking the Run & Debug button in the left side bar.

Best regards,
Nikolai



From: DuMux  On Behalf Of Siroos 
Azizmohammadi
Sent: Thursday, September 30, 2021 12:37
To: dumux@listserv.uni-stuttgart.de
Subject: [DuMux] How to setup dumux in an IDE?

Hello,

As I am quite new in dumux and Linux too, I was wondering if there are any 
instructions to setup/compile dumux in Qt, Eclipse, or any other IDEs.


Best regards,

_

Siroos Azizmohammadi, PhD

Senior Lecturer

Chair of Reservoir Engineering

Department of Petroleum Engineering

Montanuniversität Leoben

Parkstrasse 27, A-8700 Leoben, Austria

Mobile: +43 676 59 238 99

Office:  +43 3842 402 3022

Fax: +43 3842 402 3002

Email:  
siroos.azizmohamm...@unileoben.ac.at

[https://lh5.googleusercontent.com/rF98slMkRehhMBqB6cEtItNtW4uYPb7Fyxc_s6_n2dFW39qommO1B2CkZp6XcmzHUuA2wr03FZps4Cwlh83rIh9T1CSll7_SfV8g50COaIjzQk3dIXmBNLzmO721FWLVxxAt46zq]


launch.json
Description: launch.json


tasks.json
Description: tasks.json
___
DuMux mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux


[DuMux] How to setup dumux in an IDE?

2021-09-30 Thread Siroos Azizmohammadi
Hello,

As I am quite new in dumux and Linux too, I was wondering if there are any
instructions to setup/compile dumux in Qt, Eclipse, or any other IDEs.

Best regards,

_

Siroos Azizmohammadi , PhD

Senior Lecturer

Chair of Reservoir Engineering


Department of Petroleum Engineering 

Montanuniversität Leoben 

Parkstrasse 27, A-8700 Leoben, Austria

Mobile: +43 676 59 238 99

Office:  +43 3842 402 3022

Fax: +43 3842 402 3002

Email:  siroos.azizmohamm...@unileoben.ac.at
___
DuMux mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux