[petsc-users] how does the srand48/drand48 works in windows build PETSc-3.3?

Satish Balay balay at mcs.anl.gov
Tue Jan 29 13:59:13 CST 2013


BTW: You can:

- install cygwin
- build PETSc
- delete cygwin

This will satisfy your criteria - and avoid the time sink [wrt building petsc without cygwin]

Satish

On Tue, 29 Jan 2013, Satish Balay wrote:

> 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