[petsc-users] how does the srand48/drand48 works in windows build PETSc-3.3?
Satish Balay
balay at mcs.anl.gov
Tue Jan 29 23:08:25 CST 2013
Perhaps you have the flag PETSC_HAVE_DRAND48 enabled [which shouldn't be
for MS compilers]
The logfiles get deleted/recreatd everynight in that location. You
can try:
ftp://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2013-Jan-29/make_arch-mswin_ps3.log
Satish
On Tue, 29 Jan 2013, Yonghui wrote:
> I created a Solution (2 projects: Fortran and c) for PETSc-3.3 and spent 2
> afternoon for building the library purely with MSVS 2010 and parallel studio
> 13. The library works OK with ex19 as a test. Adding PETSC_HAVE_RAND into
> petscconf.h didn't solve my problem since srand48 and drand48 are not
> replaced by rand. It seems PETSc just provides a wrapper for srand48 and no
> algorithms depend on them. So I think it should be OK as long as I don't use
> the wrapper.
> Thanks Satish's explanation but I can't reach the log (maybe not open to
> public?). Could you attach it, Satish?
>
> Yonghui
>
> -----Original Message-----
> From: petsc-users-bounces at mcs.anl.gov
> [mailto:petsc-users-bounces at mcs.anl.gov] On Behalf Of Satish Balay
> Sent: Tuesday, January 29, 2013 1:55 PM
> To: PETSc users list
> Subject: Re: [petsc-users] how does the srand48/drand48 works in windows
> build PETSc-3.3?
>
> cygwin is required primarily for the build tools. But compilation is done
> directly with MS compiler/s [so no cygwin.dll is used]
>
> wrt rand stuff - cl supports PETSC_HAVE_RAND. For eg: you can check all the
> flags that get set for MS compiler/[Comapq DVF] at:
>
> ftp://ftp.mcs.anl.gov/pub/petsc/nightlylogs/build_arch-mswin_ps3.log
>
> Satish
>
> On Tue, 29 Jan 2013, Yonghui wrote:
>
> > Dear PETSc users,
> >
> >
> >
> > I am start to use PETSc-3.3 and trying to build a Cygwin free windows
> > version (I just don't want to have Cygwin installed).
> >
> > Thanks for the effort that the developers made for those macros
> > (PETSC_HAVE__FINITE, PETSC_HAVE__ISNAN, etc).
> >
> >
> >
> > Here is a question: how does srand48/drand48 works in windows? Can I
> > replace them with other random number generator (that's the last
> > option since I am not sure whether they will be used in other
> > functions)? I don't see any equivalent definition in any headers in
> windows so far.
> >
> > There is a windows build tutorial but need Cygwin installed. Does that
> > mean I have to use srand48/drand48 provided by Cygwin (not sure but
> maybe)?
> >
> >
> >
> > I am using MSVS 2010+intel compiler+mpich.
> >
> >
> >
> > Any comment will be appreciated.
> >
> >
> >
> > Thanks,
> >
> > Yonghui
> >
> >
>
>
>
More information about the petsc-users
mailing list