Thread Subject: mesh generation

Subject: mesh generation

From: Romeo

Date: 8 Apr, 2009 20:13:02

Message: 1 of 5

Hello,
does someone know why meshing on different machines and at different clock time results in different mesh?
I'm using initmesh, refinemesh ...
Thanks to all for hints

Subject: mesh generation

From: John D'Errico

Date: 8 Apr, 2009 20:45:02

Message: 2 of 5

"Romeo " <romeo_aristogatto@yahoo.com> wrote in message <grj0ge$eke$1@fred.mathworks.com>...
> Hello,
> does someone know why meshing on different machines and at different clock time results in different mesh?
> I'm using initmesh, refinemesh ...
> Thanks to all for hints

There must be some random component in the
meshing algorithm.

John

"another nice mesh you've gotten me into..."

Subject: mesh generation

From: Romeo

Date: 8 Apr, 2009 21:35:02

Message: 3 of 5

"John D'Errico" <woodchips@rochester.rr.com> wrote in message <grj2ce$2vr$1@fred.mathworks.com>...
> "Romeo " <romeo_aristogatto@yahoo.com> wrote in message <grj0ge$eke$1@fred.mathworks.com>...
> > Hello,
> > does someone know why meshing on different machines and at different clock time results in different mesh?
> > I'm using initmesh, refinemesh ...
> > Thanks to all for hints
>
> There must be some random component in the
> meshing algorithm.
>
> John
>
> "another nice mesh you've gotten me into..."

Hi John,
that's what I thought too but if i run the same code on the same machine at different clock times I get the same result, and all random generators in matlab automatically change the seeds from clock tables ....
But if I change machine, i.e. my laptop or parallel cluster machines, I get different mesh with the same input arguments ...
Whatever I didn't find in m-files any random commmands, because dealunay algorithms is fully deterministic, but may be I missed something ...
Any further idea will be appreciate, thanks

Subject: mesh generation

From: John D'Errico

Date: 8 Apr, 2009 22:35:03

Message: 4 of 5

"Romeo " <romeo_aristogatto@yahoo.com> wrote in message <grj5a6$ouq$1@fred.mathworks.com>...
> "John D'Errico" <woodchips@rochester.rr.com> wrote in message <grj2ce$2vr$1@fred.mathworks.com>...
> > "Romeo " <romeo_aristogatto@yahoo.com> wrote in message <grj0ge$eke$1@fred.mathworks.com>...
> > > Hello,
> > > does someone know why meshing on different machines and at different clock time results in different mesh?
> > > I'm using initmesh, refinemesh ...
> > > Thanks to all for hints
> >
> > There must be some random component in the
> > meshing algorithm.
> >
> > John
> >
> > "another nice mesh you've gotten me into..."
>
> Hi John,
> that's what I thought too but if i run the same code on the same machine at different clock times I get the same result, and all random generators in matlab automatically change the seeds from clock tables ....

If you restart matlab, it always starts with the same
random seed though, unless you reset the seed in
your startup.m file.

> But if I change machine, i.e. my laptop or parallel cluster machines, I get different mesh with the same input arguments ...
> Whatever I didn't find in m-files any random commmands, because dealunay algorithms is fully deterministic, but may be I missed something ...

Actually, sometimes the delaunay tools can do a
random joggle, and I don't know if the joggle is
done using Matlab's random generator or not.

Next, I've seen MANY times when someone has
moved some data from one system to another.
They always say they have changed nothing, yet
they get different results on different machines.
In EVERY case, we have eventually shown how
they actually used different data.

For example, are you pasting in 4 digits in these
numbers into a different matlab session? This is
a common error to make.

John

Subject: mesh generation

From: Romeo

Date: 15 Apr, 2009 17:09:01

Message: 5 of 5

Thanks a lot John, you gave me the typical hints that show the right way when there's only confusion =)

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com