Re: [deal.II] Using different random seed when distorting a triangulation

2020-05-25 Thread Wolfgang Bangerth

On 5/25/20 9:20 PM, David F wrote:


I would like to apply many random distortions to a triangulation. However, the 
function GridTools::distort_random seems to produce always the same 
distortion. Is there a way to use different seeds in order to generate always 
different distortions? It seems that it's not possible through the interface 
of GridTools::distort_random but I wonder if there is another way to do it, 
since this seems to me a very basic feature for the users of this function.


Interesting question!

The function doesn't currently allow that, it uses the same sequence of random 
numbers every time -- by design: This way, if you run your program twice in a 
row, it'll produce the same result.


But it wouldn't be very difficult to change that. The function is here:
https://github.com/dealii/dealii/blob/master/source/grid/grid_tools.cc#L1013-L1244
The random number generator is initialized in line 1099. It wouldn't be very 
difficult to add an argument to the function that acts as a random seed and is 
used in that line to seed the boost::random::mt19937 generator. Want to give 
this a try and implement such a change? We'd of course be very happy to take a 
patch!


Best
 Wolfgang


--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
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/b67ba0b5-7607-1173-8e8c-4bbc7c7fd505%40colostate.edu.


[deal.II] Using different random seed when distorting a triangulation

2020-05-25 Thread David F
Hello everyone.

I would like to apply many random distortions to a triangulation. However, 
the function GridTools::distort_random seems to produce always the same 
distortion. Is there a way to use different seeds in order to generate 
always different distortions? It seems that it's not possible through the 
interface of GridTools::distort_random but I wonder if there is another way 
to do it, since this seems to me a very basic feature for the users of this 
function.


Best,
David.

-- 
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/a08df296-b37f-40b4-8b4d-05f7126c22d8%40googlegroups.com.


[deal.II] Blog post about how we develop deal.II

2020-05-25 Thread Wolfgang Bangerth



Well, not really about how *we* develop deal.II -- but at least about my 
approach in general to developing software:

https://bssw.io/blog_posts/making-myself-better-what-craftspeople-can-teach-us-about-software
I think that what I describe is how a lot of good programmers think about 
their craft. If you're still learning how to be a programmer, this might be of 
interest to you.


See many of you tomorrow for the deal.II workshop!
Best
 Wolfgang

--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
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/6a85304a-361e-0663-70d1-2018b6771f9d%40colostate.edu.


[deal.II] Re: online deal.II workshop: Tuesday, May 26, 2020

2020-05-25 Thread Timo Heister
Hi all,

the information on how to join is now available at
https://dealii.org/workshop-2020/

Please join us tomorrow!

Best,
Timo



On Tuesday, May 19, 2020 at 8:40:31 PM UTC-4, Timo Heister wrote:
>
> Hi all,
>
> we would like to announce a one day-deal.II workshop on May 26, 2020 with 
> several talks about recent developments of the library. The talks will be 
> available live and available as a video at a later time.
>
> For more information including a schedule, please see:
> https://dealii.org/workshop-2020/
>
> Best,
> Timo and Wolfgang
>
> -- 
> Timo Heister
> http://www.math.clemson.edu/~heister/
>

-- 
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/c50e4ef3-cbb8-433e-89db-89a0fa374344%40googlegroups.com.


[deal.II] Build errors in Visual studio

2020-05-25 Thread Jammi Ashok
When I am trying to build solution after configuring and generating from 
CMAKE. 
I am repeatedly getting this error - "cmd.exe exited with code 1"
I am using Windows 10, 64 bit machine.

Can someone help me!


Thank you,
Ashok

-- 
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/6a5041a3-d8b8-488d-8f31-feeab56bcede%40googlegroups.com.