Re: [DuMux] (no subject)

2021-11-30 Thread Timo Koch
Dear Vuong,

how did you come up with that procedure? It doesn’t say so in the course 
material. As pointed out before this won’t work.

I would recommend you to start in a fresh directory and follow _carefully_ the 
installation instructions and the getting started guide on the website 
(https://dumux.org/gettingstarted/ ).
This shows you how to configure and build dumux and run your first application.

As for your question, the build directories are created by CMake when you run 
dunecontrol inside each module folder (dune-common/build-cmake, 
dumux/build-cmake, …) (but please just follow the instructions, it is described 
there). 

If you encounter problems with the procedure let us know.

Best regards
Timo



> On 30. Nov 2021, at 20:40, Pham, Vuong Van  wrote:
> 
> Dear all, 
> Thanks for pointing that out, and so that is the issue I want to address. My 
> point is, I read the DuMuX course tutorial and came up with this procedure, 
> as follows (in order to use DuMuX):
>  
>Install DUNE and DuMuX -> build the source files (i.e., 
> CMakeLists.txt; problem.hh, params.input, etc) -> cmake CMakeLists.txt -> 
> execute DuMuX as ./…. params.input
>  
> Therefore, please assist me on the mistakes in my understanding above 
> (especially the meaning, use, and how-to-create such the _build_ directory, 
> or build-cmake)  
>  
> I really appreciate your support. I am a beginner in DuMuX so I hope that my 
> questions are not that dumb.
>  
> Best regards,
> Vuong Van Pham
> Graduate Research Assistant (GRA)
> Department of Chemical and Petroleum Engineering (CPE), University of Kansas
> Email: vuongvanp...@ku.edu 
> Phone: +1-(785)-979-2664
>  
>  
>  
> From: Pham, Vuong Van 
> Sent: Thursday, November 18, 2021 5:02 PM
> To: Timo Koch mailto:koch_t...@hotmail.com>>; DuMux 
> User Mailing List  >
> Subject: RE: [DuMux] (no subject)
>  
> Dear all, 
> Thanks for pointing that out, and so that is the issue I want to address. My 
> point is, I read the DuMuX course tutorial and came up with this procedure, 
> as follows (in order to use DuMuX):
>  
>Install DUNE and DuMuX -> build the source files (i.e., 
> CMakeLists.txt; problem.hh, params.input, etc) -> cmake CMakeLists.txt -> 
> execute DuMuX as ./…. params.input
>  
> Therefore, please assist me on the mistakes in my understanding above 
> (especially the meaning, use, and how-to-create such the _build_ directory, 
> or build-cmake)  
>  
> I really appreciate your support. I am a beginner in DuMuX so I hope that my 
> questions are not that dumb.
> Best regards,
> Vuong Van Pham
> Graduate Research Assistant (GRA)
> Department of Chemical and Petroleum Engineering (CPE), University of Kansas
> Email: vuongvanp...@ku.edu 
> Phone: +1-(785)-979-2664
>  
>  
>  
> From: Timo Koch mailto:koch_t...@hotmail.com>> 
> Sent: Thursday, November 18, 2021 4:30 AM
> To: DuMux User Mailing List  >
> Cc: Pham, Vuong Van mailto:vuongvanp...@ku.edu>>
> Subject: Re: [DuMux] (no subject)
>  
> Dear Vuong,
>  
> it looks like you ran cmake in the source directory. You have to run „make 
> executable“ in the _build_ directory. Per default dumux/build-cmake/…
> 
> Timo
>  
> 
> 18. nov. 2021 kl. 08:19 skrev Kilian Weishaupt 
>  >:
> 
>  
> Dear Vuong Van,
> 
> did you modify anything in your CMakeLists.txt file? You said the test ran 
> successfully so the executable in 
> dumux/dumux/build-cmake/test/porousmediumflow/1p" was build successfully?
> 
> Best wishes
> Kilian
> 
> On 18.11.21 07:53, Pham, Vuong Van wrote:
> Dear Kilian,
> Still following the Cmake command (i.e., make name_of_executable), I 
> attempted to do so in the Ubuntu command window, however I received this 
> error as attached:
> 
> The picture indicated that for some reasons the command 
> “dune_symlink_to_source_files” is unknown to Cmake. Besides, what I observed 
> was that, the commands that are relevant to DUNE, somehow are unknown by 
> Cmake and cause incomplete configuration. Please assist me on this error. 
>  
> Best regards,
> Vuong Van Pham
> Graduate Research Assistant (GRA)
> Department of Chemical and Petroleum Engineering (CPE), University of Kansas
> Email: vuongvanp...@ku.edu 
> Phone: +1-(785)-979-2664
>  
>  
>  
>  
> From: Kilian Weishaupt  
>  
> Sent: Thursday, November 18, 2021 12:42 AM
> To: Pham, Vuong Van  
> Cc: DuMux User Mailing List  
> 
> Subject: Re: [DuMux] (no subject)
>  
> Dear Vuong Van,
> 
> I'm glad the installation worked now. 
> 
> 1.)
> 
> CMakeLists.txt is a configuration file read by CMake, a build system 
> generator. If configured correctly,
> you compile your source code just

Re: [DuMux] (no subject)

2021-11-30 Thread Pham, Vuong Van
Dear all,
Thanks for pointing that out, and so that is the issue I want to address. My 
point is, I read the DuMuX course tutorial and came up with this procedure, as 
follows (in order to use DuMuX):

   Install DUNE and DuMuX -> build the source files (i.e., 
CMakeLists.txt; problem.hh, params.input, etc) -> cmake CMakeLists.txt -> 
execute DuMuX as ./…. params.input

Therefore, please assist me on the mistakes in my understanding above 
(especially the meaning, use, and how-to-create such the _build_ directory, or 
build-cmake)

I really appreciate your support. I am a beginner in DuMuX so I hope that my 
questions are not that dumb.

Best regards,
Vuong Van Pham
Graduate Research Assistant (GRA)
Department of Chemical and Petroleum Engineering (CPE), University of Kansas
Email: vuongvanp...@ku.edu
Phone: +1-(785)-979-2664



From: Pham, Vuong Van
Sent: Thursday, November 18, 2021 5:02 PM
To: Timo Koch ; DuMux User Mailing List 

Subject: RE: [DuMux] (no subject)

Dear all,
Thanks for pointing that out, and so that is the issue I want to address. My 
point is, I read the DuMuX course tutorial and came up with this procedure, as 
follows (in order to use DuMuX):

   Install DUNE and DuMuX -> build the source files (i.e., 
CMakeLists.txt; problem.hh, params.input, etc) -> cmake CMakeLists.txt -> 
execute DuMuX as ./…. params.input

Therefore, please assist me on the mistakes in my understanding above 
(especially the meaning, use, and how-to-create such the _build_ directory, or 
build-cmake)

I really appreciate your support. I am a beginner in DuMuX so I hope that my 
questions are not that dumb.
Best regards,
Vuong Van Pham
Graduate Research Assistant (GRA)
Department of Chemical and Petroleum Engineering (CPE), University of Kansas
Email: vuongvanp...@ku.edu
Phone: +1-(785)-979-2664



From: Timo Koch mailto:koch_t...@hotmail.com>>
Sent: Thursday, November 18, 2021 4:30 AM
To: DuMux User Mailing List 
mailto:dumux@listserv.uni-stuttgart.de>>
Cc: Pham, Vuong Van mailto:vuongvanp...@ku.edu>>
Subject: Re: [DuMux] (no subject)

Dear Vuong,

it looks like you ran cmake in the source directory. You have to run „make 
executable“ in the _build_ directory. Per default dumux/build-cmake/…
Timo

18. nov. 2021 kl. 08:19 skrev Kilian Weishaupt 
mailto:kilian.weisha...@iws.uni-stuttgart.de>>:


Dear Vuong Van,

did you modify anything in your CMakeLists.txt file? You said the test ran 
successfully so the executable in 
dumux/dumux/build-cmake/test/porousmediumflow/1p" was build successfully?

Best wishes
Kilian
On 18.11.21 07:53, Pham, Vuong Van wrote:
Dear Kilian,
Still following the Cmake command (i.e., make name_of_executable), I attempted 
to do so in the Ubuntu command window, however I received this error as 
attached:

The picture indicated that for some reasons the command 
“dune_symlink_to_source_files” is unknown to Cmake. Besides, what I observed 
was that, the commands that are relevant to DUNE, somehow are unknown by Cmake 
and cause incomplete configuration. Please assist me on this error.

Best regards,
Vuong Van Pham
Graduate Research Assistant (GRA)
Department of Chemical and Petroleum Engineering (CPE), University of Kansas
Email: vuongvanp...@ku.edu
Phone: +1-(785)-979-2664




From: Kilian Weishaupt 

Sent: Thursday, November 18, 2021 12:42 AM
To: Pham, Vuong Van 
Cc: DuMux User Mailing List 

Subject: Re: [DuMux] (no subject)


Dear Vuong Van,

I'm glad the installation worked now.

1.)

CMakeLists.txt is a configuration file read by CMake, a build system generator. 
If configured correctly,
you compile your source code just by calling

make name_of_the_executable

If you make any changes to CMakeLists.txt, a simple

make

will update the build configuration.

Have a look at the tests or at our course exercises here 
https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/-/tree/master/exercises/exercise-basic
 to get more information
on how to properly use CMakeLists.txt

2.) You may either just use a simple text editor such as Atom or notepad++ or 
you can try setting up VS Code (an IDE) which however, is a little bit more 
involved to configure. Note that you can either edit your files under Windows 
(as shown in the windows explorer) or using the Ubuntu subsytem. Whatever works 
better for y