Re: [deal.II] Re: error while using refine_and_coarsen_fixed_number

2019-05-30 Thread Darius Barreto
Dear Bruno,

I agree to you. But I am dealing with the one dimensional rod theory and I
want to understand more complicated deformation modes, so I go for spacedim
3.

On Thu, May 30, 2019 at 6:41 PM Bruno Turcksin 
wrote:

> Darius,
>
> Le jeu. 30 mai 2019 à 08:48, Darius Barreto  a
> écrit :
> > Thanks for the reply. By saying spacedim 3, I mean that the rod (being
> one dimensional) can deform in the three dimensional space.
> Sure but does the deformation happens in a plan. If you bend a rod,
> the deformation is in a plan so you can use a two dimensional space.
> It's only if you want to do something more complicated that you need a
> three dimensional space.
>
> Best,
>
> Bruno
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/CAGVt9eNJ_yb8DWoQVkxiQCKtwhK7ZWDadULR7BR2n-m8UEsB1w%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAGAoDCoRsn%2B3%2BT%2BbE0ZOsheyvvj4QGCA6fjEassSvBVXpVCnLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Re: error while using refine_and_coarsen_fixed_number

2019-05-30 Thread Darius Barreto
Thanks for the reply. By saying spacedim 3, I mean that the rod (being one
dimensional) can deform in the three dimensional space.

On Thu, May 30, 2019 at 6:11 PM Bruno Turcksin 
wrote:

> Darius,
>
> On Thursday, May 30, 2019 at 7:27:47 AM UTC-4, Darius Barreto wrote:
>
>> I am working with adaptive meshing for a one dimensional rod problem. The
>> function* refine_and_coarsen_fixed_number *has not been instantiated for
>> the class template parameters?.
>>
> No it hasn't. You can't do dim=1 and spacedim=3 but you can do dim=1 and
> spacedim=2. You can add the explicit instantiation here
> <https://github.com/dealii/dealii/blob/master/source/grid/grid_refinement.inst.in#L56>
> for dim=1 and spacedim=3 but I don't know if the code will works. Any
> reason why you need spacedim to be 3?
>
> Best,
>
> Bruno
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/54e91ab6-a300-4563-aa59-82a1114f31d0%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/54e91ab6-a300-4563-aa59-82a1114f31d0%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAGAoDCptaoYLRJA6JdQDkCu85HQ4cuY0Ume2SDXFQAfvajs%3D_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[deal.II] error while using refine_and_coarsen_fixed_number

2019-05-30 Thread Darius Barreto
Hello everyone,

I am working with adaptive meshing for a one dimensional rod problem. The 
function* refine_and_coarsen_fixed_number *has not been instantiated for 
the class template parameters?.
I am getting the following error message.

/home/darius/elastic_deadtest_adaptive/dead_load_adaptive.cc:710: error: 
undefined reference to 'void 
dealii::GridRefinement::refine_and_coarsen_fixed_number<1, float, 
3>(dealii::Triangulation<1, 3>&, dealii::Vector const&, double, 
double, unsigned int)'
collect2: error: ld returned 1 exit status
CMakeFiles/dead_load_adaptive.dir/build.make:103: recipe for target 
'dead_load_adaptive' failed

Thanks in advance

Regards

Darius Barreto

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/fc787ec0-afbf-4982-abc4-6bfaf7ee36f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Trouble getting UMFPACK to work

2019-02-20 Thread Darius Barreto
Dear Jean-Paul,

Yes,  I was able to solve that problem.  I installed LAPACK using the
command and later I compiled the entire deal.II library. Thanks for the
help.

Regards,

Darius Barreto.

On Wed, Feb 20, 2019 at 2:58 PM Jean-Paul Pelteret 
wrote:

> Dear Darius,
>
> I just thought I’d ask whether you were able to solve your problem?
>
> Best,
> Jean-Paul
>
> On 16 Feb 2019, at 05:22, Darius Barreto  wrote:
>
> Dear Jean-Paul,
>
> Thanks for the reply.
>
>
>
> On Thursday, February 14, 2019 at 9:20:39 PM UTC+5:30, Jean-Paul Pelteret
> wrote:
>>
>> Dear Darius,
>>
>> template 
>> void elastic_rod::solve(){
>> SparseDirectUMFPACK A_direct;
>> A_direct.initialize(system_matrix) ;
>> A_direct.vmult(solution, system_rhs);
>> }
>> Since I am new to dealii, so instead of creating a new  CMakeLists.txt
>> file I have just copied my code in step-29 example(as It uses this
>> UMFPACK), of course I have ensured to change the name in the .txt file. I
>> am getting the error. I have attached the error message.  Do I actually
>> need to make changes( unlike other tutorials) while  entering the cmake
>> command in the terminal?(cmake
>> -DDEAL_II_WITH_DIR=/path/to/installed/deal.II). I have also included the
>> header file for the sparse direct solver UMFPACK(#include
>> ). My other tutorials are just running fine in
>> dealii, except the ones which use an UMFPACK.
>>
>> You suggested me to install an external LAPACK on the group, but I have
>> difficulties in installing it. I was unable to find a proper source in
>> google regarding its installation procedure. So could it be the only reason
>> of not having an external LAPACK?.
>>
>>
>> I’m gathering from the picture that you sent me that the operating system
>> that you’re running is Ubuntu 18.04 or thereabouts. You should be able to
>> install LAPACK with the command “sudo apt install liblapack-dev”. After
>> that, you should *recompile* deal.II itself (not the tutorial example,
>> or your code, but the actual library). It is during the configuration stage
>> for deal.II that UMFPACK is detected and, therefore, enabled within
>> deal.II. It also at this point that you should see the messages that I
>> mentioned earlier, if the detection of UMFPACK was successful. If you’re
>> having trouble installing deal.II itself, then you should consider
>> installing deal.II using candi (https://github.com/dealii/candi) or
>> spack (https://github.com/spack/spack
>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fspack%2Fspack=D=1=AFQjCNGbJcXbykST5O4yaPxL8k2uk26dGA>
>>  / https://github.com/dealii/dealii/wiki/deal.II-in-Spack).
>>
>> I hope that this clarify what you need to do.
>> Best,
>> Jean-Paul
>>
>> On 14 Feb 2019, at 08:16, Jean-Paul Pelteret  wrote:
>>
>> Dear Darius,
>>
>> Your installation of deal.II has not been compiled with UMFPACK supplied
>> as an external library. The bundled version has also not been built, likely
>> because you do not have the required dependencies installed. I believe that
>> you need to have LAPACK installed for it to work, so you should install
>> LAPACK and then try to configure and then build deal.II again. At the end
>> of the configuration step you should see a line similar to this in the
>> summary printed to the console:
>>
>> #DEAL_II_WITH_UMFPACK successfully set up with bundled packages.
>>
>> or
>>
>> #DEAL_II_WITH_UMFPACK set up with external dependencies
>>
>> I hope that this helps you resolve your issue.
>>
>> Best,
>> Jean-Paul
>>
>> On 13 Feb 2019, at 12:38, Darius Barreto  wrote:
>>
>> Hi John,
>>
>> I am exactly getting the same error message?. How were you able to
>> rectify it?.
>> Could you please help?.
>>
>> Thanks
>>
>>
>>
>> On Thursday, August 31, 2017 at 9:28:52 PM UTC+5:30, John wrote:
>>>
>>> Hello everyone,
>>>
>>> I am currently using Deal II version 8.0.0. When I try to run a project
>>> I am getting the following:
>>>
>>> 
>>> Exception on processing:
>>>
>>> 
>>> An error occurred in line <379> of file 
>>> 
>>> in function
>>> void dealii::SparseDirectUMFPACK::factorize(const Matrix&) [with
>>> Matrix = dealii::SparseMatrix]
>>> The violated condition was:
>>> fals

Re: [deal.II] Trouble getting UMFPACK to work

2019-02-15 Thread Darius Barreto
Dear Jean-Paul,

Thanks for the reply. 



On Thursday, February 14, 2019 at 9:20:39 PM UTC+5:30, Jean-Paul Pelteret 
wrote:
>
> Dear Darius,
>
> template 
> void elastic_rod::solve(){
> SparseDirectUMFPACK A_direct;
> A_direct.initialize(system_matrix) ;
> A_direct.vmult(solution, system_rhs);
> }
> Since I am new to dealii, so instead of creating a new  CMakeLists.txt 
> file I have just copied my code in step-29 example(as It uses this 
> UMFPACK), of course I have ensured to change the name in the .txt file. I 
> am getting the error. I have attached the error message.  Do I actually 
> need to make changes( unlike other tutorials) while  entering the cmake 
> command in the terminal?(cmake 
> -DDEAL_II_WITH_DIR=/path/to/installed/deal.II). I have also included the 
> header file for the sparse direct solver UMFPACK(#include 
> ). My other tutorials are just running fine in 
> dealii, except the ones which use an UMFPACK.
>
> You suggested me to install an external LAPACK on the group, but I have 
> difficulties in installing it. I was unable to find a proper source in 
> google regarding its installation procedure. So could it be the only reason 
> of not having an external LAPACK?.
>
>
> I’m gathering from the picture that you sent me that the operating system 
> that you’re running is Ubuntu 18.04 or thereabouts. You should be able to 
> install LAPACK with the command “sudo apt install liblapack-dev”. After 
> that, you should *recompile* deal.II itself (not the tutorial example, or 
> your code, but the actual library). It is during the configuration stage 
> for deal.II that UMFPACK is detected and, therefore, enabled within 
> deal.II. It also at this point that you should see the messages that I 
> mentioned earlier, if the detection of UMFPACK was successful. If you’re 
> having trouble installing deal.II itself, then you should consider 
> installing deal.II using candi (https://github.com/dealii/candi) or spack 
> (https://github.com/spack/spack 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fspack%2Fspack=D=1=AFQjCNGbJcXbykST5O4yaPxL8k2uk26dGA>
>  / 
> https://github.com/dealii/dealii/wiki/deal.II-in-Spack).
>
> I hope that this clarify what you need to do.
> Best,
> Jean-Paul
>
> On 14 Feb 2019, at 08:16, Jean-Paul Pelteret  > wrote:
>
> Dear Darius,
>
> Your installation of deal.II has not been compiled with UMFPACK supplied 
> as an external library. The bundled version has also not been built, likely 
> because you do not have the required dependencies installed. I believe that 
> you need to have LAPACK installed for it to work, so you should install 
> LAPACK and then try to configure and then build deal.II again. At the end 
> of the configuration step you should see a line similar to this in the 
> summary printed to the console:
>
> #DEAL_II_WITH_UMFPACK successfully set up with bundled packages.
>
> or
>
> #DEAL_II_WITH_UMFPACK set up with external dependencies
>
> I hope that this helps you resolve your issue.
>
> Best,
> Jean-Paul
>
> On 13 Feb 2019, at 12:38, Darius Barreto > 
> wrote:
>
> Hi John,
>
> I am exactly getting the same error message?. How were you able to rectify 
> it?.
> Could you please help?.
>
> Thanks
>
>
>
> On Thursday, August 31, 2017 at 9:28:52 PM UTC+5:30, John wrote:
>>
>> Hello everyone,
>>
>> I am currently using Deal II version 8.0.0. When I try to run a project I 
>> am getting the following:
>>
>> 
>> Exception on processing: 
>>
>> 
>> An error occurred in line <379> of file 
>>  
>> in function
>> void dealii::SparseDirectUMFPACK::factorize(const Matrix&) [with 
>> Matrix = dealii::SparseMatrix]
>> The violated condition was: 
>> false
>> The name and call sequence of the exception was:
>> ExcMessage("To call this function you need UMFPACK, but configured 
>> deal.II without passing the necessary switch to 'cmake'. Please consult the 
>> installation instructions in doc/readme.html.")
>> Additional Information: 
>> To call this function you need UMFPACK, but configured deal.II without 
>> passing the necessary switch to 'cmake'. Please consult the installation 
>> instructions in doc/readme.html.
>>
>> Stacktrace:
>> ---
>> #0  /Downloads/deal.II/lib/libdeal_II.so.8.0.0: void 
>> dealii::SparseDirectUMFPACK::factorize 
>> >(dealii::SparseMatrix const&)
>> #1  step-3: TmsProblem::solve()
>> #2  step-3: TmsProble

[deal.II] Re: Trouble getting UMFPACK to work

2019-02-13 Thread Darius Barreto
Hi John,

I am exactly getting the same error message?. How were you able to rectify 
it?.
Could you please help?.

Thanks



On Thursday, August 31, 2017 at 9:28:52 PM UTC+5:30, John wrote:
>
> Hello everyone,
>
> I am currently using Deal II version 8.0.0. When I try to run a project I 
> am getting the following:
>
> 
> Exception on processing: 
>
> 
> An error occurred in line <379> of file 
>  
> in function
> void dealii::SparseDirectUMFPACK::factorize(const Matrix&) [with 
> Matrix = dealii::SparseMatrix]
> The violated condition was: 
> false
> The name and call sequence of the exception was:
> ExcMessage("To call this function you need UMFPACK, but configured 
> deal.II without passing the necessary switch to 'cmake'. Please consult the 
> installation instructions in doc/readme.html.")
> Additional Information: 
> To call this function you need UMFPACK, but configured deal.II without 
> passing the necessary switch to 'cmake'. Please consult the installation 
> instructions in doc/readme.html.
>
> Stacktrace:
> ---
> #0  /Downloads/deal.II/lib/libdeal_II.so.8.0.0: void 
> dealii::SparseDirectUMFPACK::factorize 
> >(dealii::SparseMatrix const&)
> #1  step-3: TmsProblem::solve()
> #2  step-3: TmsProblem::run()
> #3  step-3: main
> 
>
> Aborting!
> 
> CMake Error at CMakeFiles/run_target.cmake:6 (MESSAGE):
>   
>
>   Program terminated with exit code: 1
>
>
> CMakeFiles/run.dir/build.make:57: recipe for target 'CMakeFiles/run' failed
> make[3]: *** [CMakeFiles/run] Error 1
> CMakeFiles/Makefile2:264: recipe for target 'CMakeFiles/run.dir/all' failed
> make[2]: *** [CMakeFiles/run.dir/all] Error 2
> CMakeFiles/Makefile2:271: recipe for target 'CMakeFiles/run.dir/rule' 
> failed
> make[1]: *** [CMakeFiles/run.dir/rule] Error 2
> Makefile:196: recipe for target 'run' failed
> make: *** [run] Error 2
>
>
>
> I have tried "*cmake -DDEAL_II_WITH_UMFPACK=ON*" and "*cmake 
> -DDEAL_II_WITH_UMFPACK=ON -DUMFPACK_DIR=/Downloads/deal.II/bundled/umfpack 
> .*" and also  "*cmake -DDEAL_II_WITH_UMFPACK=ON 
> -DUMFPACK_DIR=/Downloads/deal.II/bundled/umfpack/UMFPACK .*" and then 
> following each of these with "*make*" and "*make run*". However, all of 
> these still end up giving me the same error as above. Can anyone help me 
> with getting umfpack to work? Thank you in advance.
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.