Re: [deal.II] Deal.II programming environment

2021-07-21 Thread Jiang Hu
Hi Jean-Paul, Thanks for the suggestion, I will give it a go and find out. In order to use deal.II, I find we have to become an part-time computer scientist, the means defeats the goal, haha Best regards Martin On Thursday, 22 July 2021 at 2:53:29 pm UTC+10 Jean-Paul Pelteret wrote: > Hi

Re: [deal.II] Deal.II programming environment

2021-07-21 Thread Jean-Paul Pelteret
Hi Martin, This is the sort of case where where VSCode is really useful. It has an easy to use remote development extension, where you would open and use the editor in Windows but you’d be editing and building files on the virtual machine. Here are a couple of official links that explain the

Re: [deal.II] Matrix Multiplication

2021-07-21 Thread Jean-Paul Pelteret
Dear Michael, The classes that better serve your purpose are the Tensor and SymmetricTensor classes: https://dealii.org/current/doxygen/deal.II/classTensor.html https://dealii.org/current/doxygen/deal.II/classSymmetricTensor.html

[deal.II] Re: Deal.II programming environment

2021-07-21 Thread Jiang Hu
Hi Bruno, Thanks for the link. The thing is, I am using a virtual box machine with Deal.II and Ubuntu. where should I get Eclipse installed? I guess doing it in windows should not work. Thanks for your time. Martin On Wednesday, 21 July 2021 at 10:11:01 pm UTC+10 bruno.t...@gmail.com

Re: [deal.II] Deal.II programming environment

2021-07-21 Thread Jiang Hu
Hi David, Thanks for the detailed explanation. I suppose below procedure should work: 1 Open Deal.II example, the cpp file, with text editor 2 make changes to it, and save it as another cpp file 3 Use cMake to run this new cpp file at the command line 4 if no mistake, the new cpp file will

[deal.II] Matrix Multiplication

2021-07-21 Thread Michael Lee
Dear dealii users, I want to construct a matrix [image: E=1/2(F^TF-1)]. My approach is as follows. FullMatrix F(3,3) = 0.0; // deformation gradient FullMatrix E(3,3) = 0.0; // Green strain FullMatrix I (IdentityMatrix(3)); F.Tmmult(E, F); E.add(-1, I); E.add(2, E); I wonder if there is an more

[deal.II] Re: Able to use umfpack in debug configuration, but not in release configuration

2021-07-21 Thread Lucas Myers
Hi folks, Excuse me, the problem was on my end -- when using cmake4eclipse, you have to specify that you want to use the "CMAKE_EXPORT_COMPILE_COMMANDS parser" as the provider in the "Preprocessor Includes, Paths, Macros, etc." tab for your project for *both* the Release and Debug

[deal.II] dealii in spack - approach to upgrade to latest version 9.3.3 via local git clone of spack

2021-07-21 Thread Simon
Dear all, I am currently working with dealii version 9.1.1 and would like to install the latest version because I need access to the new element formulations. I cloned the spack repository and installed dealii via 'spack install dealii' and did all necessary instructions imposed by the dealii

[deal.II] Able to use umfpack in debug configuration, but not in release configuration

2021-07-21 Thread Lucas Myers
Hi all, I've used the #include command in a program in order to use UMFPack. I'm able to compile and run everything fine in Debug mode (provided by Eclipse via the cmake4eclipse add-on). However, when I try to switch to Release mode to optimize the program, it gives me the following warning:

Re: [deal.II] Deal.II programming environment

2021-07-21 Thread Wells, David
Hi Martin, No, that's a very good question - it's important to set up a good development environment. You CAN use plain text editors and run CMake from the command line (in fact, with many tools you will end up still running CMake from a window inside them) but its usually better to use

[deal.II] Re: Deal.II programming environment

2021-07-21 Thread Bruno Turcksin
Martin, You can use whatever you like, there is no such thing as a typical environment. With that being said, we do have documentation and videos to help you setup Eclipse. See https://github.com/dealii/dealii/wiki/Eclipse https://www.math.colostate.edu/~bangerth/videos.676.7.html