[petsc-dev] [petsc-users] Eigenvalue solver method in Petsc

2013-03-18 Thread Farshid Mossaiby
Hi,
?
Can this help?
?
https://bitbucket.org/monaka/msys-python



 From: Satish Balay balay at mcs.anl.gov
To: For users of the development version of PETSc petsc-dev at mcs.anl.gov 
Sent: Monday, March 18, 2013 2:01 AM
Subject: Re: [petsc-dev] [petsc-users] Eigenvalue solver method in Petsc
  
On Sun, 17 Mar 2013, Barry Smith wrote:

 
? ? We should support the Msys interface, what stands in the way of it.

Ok - msys appears to be part of mingw - and multiple sources of instalation 
information.

http://www.mingw.org/wiki/Getting_Started

Installed via 'Graphical User Interface Installer' instructions with 
'mingw-get-inst'

But I don't see any python. ['mingw-get list python' - the recommended
package manager gives 'unknown package' errork]

Ok - attempt to build from sources - but I get error here aswell.

gcc -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes? -I. -IInclude -I./Include?  -DPy_BUILD_CORE -o 
Python/import.o Python/import.c
Python/import.c: In function 'write_compiled_module':
Python/import.c:886:50: error: 'S_IXGRP' undeclared (first use in this 
function)
Python/import.c:886:50: note: each undeclared identifier is reported only once 
for each function it appears in
Python/import.c:886:61: error: 'S_IXOTH' undeclared (first use in this 
function)
make: *** [Python/import.o] Error 1

Google 'msys python' gives
http://opensourcepack.blogspot.com/2012/04/its-just-wrong-msys-python.html

Is this hacked python one uses for msys? I don't know.. There are also
references to windows native python - but then - petsc configure
doesn't work with it.

Also - I don't see any editors [vi/emacs] in msys - presumably one is
expected to use MS native mostly [including for python?]

Satish


   
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/96f9dadc/attachment-0001.html


[petsc-dev] Somewhat off-topic: Mercurial

2010-04-22 Thread Farshid Mossaiby
Hi all,

Just read this on Planet Ubuntu, I thought you may be interested in reading 
it...

http://www.ogmaciel.com/?p=944

Best regards,
Farshid Mossaiby


  



GPU related stuff

2009-07-09 Thread Farshid Mossaiby

Hi all,

Some time ago on this list, there was some discussion about GPU and a GPU 
version of PETSc. I would like to know if there has been any progress. Also, I 
need some advice on preconditioners suitable for GPU platforms.

May I know what platform/language you are using, e.g. nVidia/CUDA, ATI/ATI 
Stream SDK or OpenCL?

Best regards,
Farshid Mossaiby


  



[PETSC #18705] PETSc and Cygwin License (POSIX layer)

2008-12-04 Thread Farshid Mossaiby
Hi all,

I am really glad to hear this. This is exactly what I wished, and told you some 
time ago.

Just wanted you to know that there is a Windows Services For Unix (SFU) 
add-on for Windows, which is in some way like Cygwin. It is free, and can be 
downloaded by everyone. It has support for unix paths, too. I really do not 
like it (even as much as Cygwin), but it can be somewhat useful for you / 
someone else, if you take a look at it:

http://technet.microsoft.com/en-us/interopmigration/bb380242.aspx

Best regards,
Farshid Mossaiby


--- On Thu, 12/4/08, Lisandro Dalcin dalcinl at gmail.com wrote:

 From: Lisandro Dalcin dalcinl at gmail.com
 Subject: Re: [PETSC #18705] PETSc and Cygwin License (POSIX layer)
 To: petsc-dev at mcs.anl.gov
 Date: Thursday, December 4, 2008, 10:28 PM
 On Thu, Dec 4, 2008 at 4:42 PM, Barry Smith
 bsmith at mcs.anl.gov wrote:
 
   Make is NOT the problem! (It is just one of several)
 
 Indeed. However, at some time I'll try to make PETSc
 build with Scons.
 But we need to fix configure first.
 
 
   Config/configure.py uses the SHELL constantly for
 basically everything. Try
  running config/configure.py
  under Windows without using cygwin.
 
 I tried at home to run it with standard Windows's
 Python and
 MinGW+MSYS, but I had no success up to now (however, I have
 not tried
 hard)
 
 
 
  I for one think it should be possible to remove
 'make' from the
  toolchain, leaving us with only win32fe, which we
 distribute. Thus
  I think we could abandon cygwin once and for all.
 I would even be
  willing to write a \emph{make clone} to
 accomplish this, even though
  I am a committed enemy of make (which once
 TP'ed my house).
 
Matt
 
  -- Forwarded message --
  From: Barry Smith bsmith at mcs.anl.gov
  Date: Thu, Dec 4, 2008 at 12:00 PM
  Subject: Re: [PETSC #18705] PETSc and Cygwin
 License (POSIX layer)
  To: Stefan Benkler benkler at itis.ethz.ch
  Cc: petsc-maint at mcs.anl.gov
 
 
   Stefan,
 
Here is my understanding of the situation.
 
Conjecture: You CAN use an open source compiler
 (GNU)  to compile
  proprietary code and then sell
  the binaries without making the proprietary code
 GNU licensed so long as
  you just use the
  GNU compilers out of the box and don't change
 their source code and don't
  include the compliers
  libraries in your binaries.
 
   IF this is true then you are safe, the Cygwin
 environment is only used by
  PETSc to have
  a system to compile PETSc. None of it is included
 in the binaries
  generated.
 
   On the other hand, if my initial conjecture is
 wrong, then there could be
  a problem.
 
   Barry
 
  We've tried over the years to use Windows
 posix environments to develop
  a build system
  for PETSc so we don't need cygwin to build
 PETSc. Unfortunately their
  stuff is so un-unix
  like that it just wasn't practical and using
 developers studio to build
  PETSc directly is
  possible but requires some how getting all the
 PETSc source properly into
  developers studio
  and as far as I know the only way to do this is
 manually through the gui
  which is very painful;
  plus if we change something in the Unix build side
 later we'd need to
  change it manually
  on the developers studio side.
 
  If the situation has changed and Windows does
 provide a reasonable way to
  build large
  unix codes I'd love to hear about it and use
 it. We hate cygwin but feel
  with have no other
  reasonable option.
 
  On Dec 4, 2008, at 3:33 AM, Stefan Benkler wrote:
 
  Dear PETSc developers
 
  Since a while, I successfully use your fantastic
 library on Windows. Thank
  you very much!
 
  Lately, I had a discussion about the involved
 copyrights/licenses with a
  colleague. The main point was if PETSc requires
 the POSIX layer of cygwin on
  Windows (and therefore would need to fulfill
 cygwin's GPL license).
 
  My standpoint was that cygwin is just used to
 configure and build the
  library, but only native Windows libraries (using
 MS or Intel's Windows
  compiler, MKL) are finally linked to the PETSc
 libs. However, I have
  difficulties to proof this claim, which is the
 reason for this email.
 
  Please comment/clarify the licensing on a Windows
 system.
 
  Thanks a lot for your informations.
 
  Best regards
 
   Stefan Benkler
 
 
 
 
 
  --
  What most experimenters take for granted before
 they begin their
  experiments is infinitely more interesting than
 any results to which their
  experiments lead.
  -- Norbert Wiener
 
 
 
 
 
 -- 
 Lisandro Dalc?n
 ---
 Centro Internacional de M?todos Computacionales en
 Ingenier?a (CIMEC)
 Instituto de Desarrollo Tecnol?gico para la Industria
 Qu?mica (INTEC)
 Consejo Nacional de Investigaciones Cient?ficas y
 T?cnicas (CONICET)
 PTLC - G?emes 3450, (3000) Santa Fe, Argentina
 Tel/Fax: +54-(0)342-451.1594


  




[PETSC #18705] PETSc and Cygwin License (POSIX layer)

2008-12-04 Thread Farshid Mossaiby
Hi,

I do not know related it is, boost_build / bjam is another beast to consider. 
Based on python, runs OK on windows and seem quite nice in the project I work 
with it.

Regards,
Farshid Mossaiby

--- On Fri, 12/5/08, Jed Brown jed at 59A2.org wrote:

 From: Jed Brown jed at 59A2.org
 Subject: Re: [PETSC #18705] PETSc and Cygwin License (POSIX layer)
 To: petsc-dev at mcs.anl.gov
 Date: Friday, December 5, 2008, 12:21 AM
 On Thu 2008-12-04 16:58, Lisandro Dalcin wrote:
  On Thu, Dec 4, 2008 at 4:42 PM, Barry Smith
 bsmith at mcs.anl.gov wrote:
  
Make is NOT the problem! (It is just one of
 several)
  
  Indeed. However, at some time I'll try to make
 PETSc build with Scons.
 
 Presumably you have some experience with SCons, but I think
 it's really
 not such a good way to go.  It's pretty slow for large
 projects and the
 caching design seems to generate inconsistent state
 somewhat regularly.
 Also, big projects seem to always end up with a fork of
 SCons or abandon
 it for alternatives.
 
 I've been using CMake for my stuff (linking against
 PETSc and a few
 other libs).  The syntax is pretty hideous for scripting,
 but the
 declarative build definition is very nice.  Since it uses
 the native
 build system, the IDE-using people on Windows would
 probably prefer it
 as well.  It would be trivial (like an hour, plus some for
 tests) to
 replace the current recursive make with CMake, replacing
 BuildSystem
 would obviously require a bit of tedium, if it was even
 desirable.
 BuildSystem is a very different beast from the
 configuration tools
 that are out there since it also fills in as a package
 manager
 (extremely nice since lots of optional dependencies have
 really painful
 build systems).
 
 In any case, having proper dependency analysis would be
 *really* cool, a
 do-nothing rebuild of ParaView (includes VTK, 2M LOC in
 many
 directories) takes 10 seconds so the usual PETSc few-file
 recompile
 after 'hg pull -u' would be a 2-second affair.
 
 Anyway, I'd suggest having a look at CMake before
 implementing an SCons
 build.
 
 Jed


  




petsc and x-fem

2008-08-13 Thread Farshid Mossaiby
Hi,

I always liked idea of a *simple* parallel FEM code in Petsc, which shows most 
of tricks used in various programs, like parallel assembly of elements and 
imposing Dirichlet BCs in a proper way. I think this can eliminate many of How 
should I do that questions from newbies like me. I think this is almost a 
series of copy-paste's for you. With a little documentation this would be a 
great help.

Best regards,
Farshid Mossaiby


--- On Tue, 8/12/08, Barry Smith bsmith at mcs.anl.gov wrote:

 From: Barry Smith bsmith at mcs.anl.gov
 Subject: Re: petsc and x-fem
 To: petsc-dev at mcs.anl.gov
 Cc: Techas techas at gmail.com
 Date: Tuesday, August 12, 2008, 7:48 PM
 There is also one other example that is a lower level then
 sieve
 where the application more directly manages the mesh data
 structure.
 This is example is src/snes/examples/tutorials/ex10d. It is
 not really
 a complete example but gives the outline of how one can
 write
 such a code.
 
 Barry
 
 On Aug 12, 2008, at 6:28 AM, Matthew Knepley wrote:
 
  On Mon, Aug 4, 2008 at 6:49 AM, Techas
 techas at gmail.com wrote:
  Hi Matthew,
 
  I'm Sergio (X-FEM), we meet some weeks ago in
 Davis.
  I'm playing a little bit with petsc to evaluate
 how much work will
  take me mount my x-fem code on petsc.
 
  Sorry I am just replying now. I returned from Norway
 yesterday.
 
 
  My first question is: can you tell me a good example
 of the assembly
  of a global finite element matrix (distributed in n
 procs) based on a
  distributed mesh?
 
  The answers is in two parts. If you have a structured
 grid, then the  
  DA
  construct can do everything and is very simple. You
 just call  
  MatSetValuesStencil()
  as in KSP ex2.
 
  If you have an unstructured grid, we have new
 functionality (only in  
  the
  development version) in a Mesh object. This will be in
 the upcoming  
  release,
  but you can see it now in
 src/dm/mesh/sieve/problems/Bratu.hh. The  
  function
  to examine is Rhs_Unstructured() which forms the
 residual for this  
  equation
  on an unstructured mesh. Unfortunately, this is new
 and has little  
  documentation.
  Before the release, I will write some, but until then
 you will have  
  to ask me
  questions if you want to try it out.
 
Thanks,
 
   Matt
 
 
  If you want me to write to the petsc list just tell
 me.
 
  thank you!
  Sergio.
 
  --
  Sergio Zlotnik, PhD
  Group of Dynamics of the Lithosphere -GDL-
  Department of Geophysics  Tectonics
  Institute of Earth Sciences - CSIC
  Sole Sabaris s/n
  Barcelona 08028 - SPAIN
 
  Tel: +34 93 409 54 10
  Fax: +34 93 411 00 12
  email: szlotnik at ija.csic.es
 
  Web page http://www.ija.csic.es/gt/sergioz/
 
 
 
  -- 
  What most experimenters take for granted before they
 begin their  
  experiments is infinitely more interesting than any
 results to which  
  their experiments lead.
  -- Norbert Wiener


  




Compiling PETSc with Visual Studio 2008

2008-04-26 Thread Farshid Mossaiby
Dear Satish,

You were absolutely right. After caching a password
using MPICH tool, make test works fine.

Now, there are some other issues. I am mostly
interested in ksp examples. In
$PETSC_DIR/src/ksp/ksp/test:

1. When I make ex2 it gives me an error:

make: *** No rule to make target `ex2.o', needed by
`ex2'.  Stop.

2. make ex1 works ok, but:

$ mpiexec -np 2 ./ex1 -pc_type jacobi
-ksp_monitor_short -ksp_gmres_cgs_refin
ement_type refine_always
[1]PETSC ERROR: - Error Message

[1]PETSC ERROR: Arguments must have same
communicators!
[1]PETSC ERROR: Different communicators in the two
objects: Argument # 1 and 2!
[1]PETSC ERROR:

[1]PETSC ERROR: Petsc Release Version 2.3.3, Patch 12,
Thu Apr 10 15:41:55 CDT 2008 HG revision:
48778aa37f228d65b9e8dd6866e074a5a4a9b77d
[1]PETSC ERROR: See docs/changes/index.html for recent
updates.
[1]PETSC ERROR: See docs/faq.html for hints about
trouble shooting.
[1]PETSC ERROR: See docs/index.html for manual pages.
[1]PETSC ERROR:

[1]PETSC ERROR:
C:\Cygwin\home\Administrator\petsc-2.3.3-p12\src\ksp\ksp\examples\tests\ex1.exe
on a cygwin-c- named PC02 by Administrator Sat Jun 14
11:59:4
6 2008
[1]PETSC ERROR: Libraries linked from
/home/Administrator/petsc-2.3.3-p12/lib/cygwin-c-debug-mpi
[1]PETSC ERROR: Configure run at Tue Jun 10 17:58:08
2008
[1]PETSC ERROR: Configure options --with-cc=win32fe
cl --nodetect --with-fc=0 --with-ar=win32fe lib
--nodetect PETSC_ARCH=cygwin-c-debug-mpi --with-mpi=1
--
with-mpi-dir=/cygdrive/c/Program Files/MPICH2/
--download-c-blas-lapack=../f2cblaslapack.tar.gz
--useThreads=0 --with-shared=0
[1]PETSC ERROR:

[1]PETSC ERROR: KSPSetOperators() line 277 in
src/ksp/ksp/interface/C:\Cygwin\home\ADMINI~1\PETSC-~1.3-P\src\ksp\ksp\INTERF~1\itcreate.c
[1]PETSC ERROR: main() line 40 in
src/ksp/ksp/examples/tests/C:\Cygwin\home\ADMINI~1\PETSC-~1.3-P\src\ksp\ksp\examples\tests\ex1.c
application called MPI_Abort(MPI_COMM_WORLD, 80) -
process 1
job aborted:
rank: node: exit code[: error message]
0: pc02: 80
1: pc02: 80: application called
MPI_Abort(MPI_COMM_WORLD, 80) - process 1

Any hint on this one?

Thanks in advance,
Farshid Mossaiby

--- Satish Balay balay at mcs.anl.gov wrote:

 On Wed, 23 Apr 2008, Farshid Mossaiby wrote:
 
  I built PETSc with this command line after
 installing
  latest MPICH2:
  
  ./config/configure.py --with-cc='win32fe cl
  --nodetect' --with-fc=0 --with-ar='win32fe lib
  --nodetect' PETSC_ARCH=cygwin-c-debug-mpi
 --with-mpi=1
  --with-mpi-dir=/cygdrive/c/Program\ Files/MPICH2/
  --download-c-blas-lapack=../f2cblaslapack.tar.gz
  
  It compiles OK but stops after make all test:
  
  ...
  Completed building libraries
  =
  Shared libraries disabled
  Running test examples to verify correct
 installation
  
  ... and I have to press Ctrl-C to quit. Have I
 done
  anything wrong?
 
 This MPI requires additional *settings* to run
 codes. I.e automated
 testing won't work. Try running manually.
 
 cd src/ksp/ksp/examples/tutorials
 make ex2
 mpiexec -n 2 ./ex2
 
 
 [mostlikely - mpiexec need to authenicate the
 windows way - before
 being able to launch a job]
 
 Satish
 
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




Compiling PETSc with Visual Studio 2008

2008-04-24 Thread Farshid Mossaiby
Thanks, Satish!

I will test it ASAP and report the result.

Regards,
Farshid Mossaiby

--- Satish Balay balay at mcs.anl.gov wrote:

 On Wed, 23 Apr 2008, Farshid Mossaiby wrote:
 
  I built PETSc with this command line after
 installing
  latest MPICH2:
  
  ./config/configure.py --with-cc='win32fe cl
  --nodetect' --with-fc=0 --with-ar='win32fe lib
  --nodetect' PETSC_ARCH=cygwin-c-debug-mpi
 --with-mpi=1
  --with-mpi-dir=/cygdrive/c/Program\ Files/MPICH2/
  --download-c-blas-lapack=../f2cblaslapack.tar.gz
  
  It compiles OK but stops after make all test:
  
  ...
  Completed building libraries
  =
  Shared libraries disabled
  Running test examples to verify correct
 installation
  
  ... and I have to press Ctrl-C to quit. Have I
 done
  anything wrong?
 
 This MPI requires additional *settings* to run
 codes. I.e automated
 testing won't work. Try running manually.
 
 cd src/ksp/ksp/examples/tutorials
 make ex2
 mpiexec -n 2 ./ex2
 
 
 [mostlikely - mpiexec need to authenicate the
 windows way - before
 being able to launch a job]
 
 Satish
 
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




Compiling PETSc with Visual Studio 2008

2008-04-23 Thread Farshid Mossaiby
Dear Satish,

Thanks for all your helpful comments.

I am currently doing a 32 bit build. I will try to
install MPICH2 binaries and report the results.

I read a bit the manual of latest MPICH2; it says you
can build it very easily under windows. I still cannot
understand why Matt wrote:

MPICH (and any other MPI) does not build automatically
on Windows. You have to download binaries, which means
you are stuck with whatever compilers were used to
build it.

Of course you are much more experienced with this,
just wanted to know.

Best regards,
Farshid Mossaiby


--- Satish Balay balay at mcs.anl.gov wrote:

 On Tue, 22 Apr 2008, Farshid Mossaiby wrote:
 
  Dear Satish,
  
  I am glad to inform you that I could finally build
  PETSc with Visual Studio 2008 Express Edition in
 the
  same way as 2005 version. The test example was run
  successfully by make.
  
  Now, may I know how should I add support for MPI?
 As
  said in the web page, I disabled MPI
 (--with-mpi=0),
  but my code needs it.
 
 Are you doing a 32bit build or 64bit build?
 
 With 32bit build - you can install MPICH1 or latest
 MPICH2 binarys in
 the default locations, and configure should find it
 automatically.
 
 With 64bit build - it might also work. If it doesn't
 - let us know, I
 might have to recheck on this.
 
 Satish
 
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




Compiling PETSc with Visual Studio 2008

2008-04-23 Thread Farshid Mossaiby
Dear Satish,

 PETSc configure cannot build it with the option
 --download-mpich=1 [or
 the alternate mpi with --download-lam=1]. If you
 know how to build it
 yourself, and then configure PETSc with it - then
 that should work.
 No one has attempted this on windows yet [as far as
 I know].
 
 Why would you prefer to build MPICH from sources on
 windows - when the
 binary install is available?

Well, I do not prefer that, I just wanted to know 'why
it is not possible'. And, it was not clear to me that
if I install the binaries, configure can use them. You
might want to add this to your web pages, as well as
possibility of compiling PETSc with Visual Studio 2008
Express Edition.

Best regards,
Farshid Mossaiby


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




Compiling PETSc with Visual Studio 2008

2008-04-23 Thread Farshid Mossaiby
I built PETSc with this command line after installing
latest MPICH2:

./config/configure.py --with-cc='win32fe cl
--nodetect' --with-fc=0 --with-ar='win32fe lib
--nodetect' PETSC_ARCH=cygwin-c-debug-mpi --with-mpi=1
--with-mpi-dir=/cygdrive/c/Program\ Files/MPICH2/
--download-c-blas-lapack=../f2cblaslapack.tar.gz

It compiles OK but stops after make all test:

...
Completed building libraries
=
Shared libraries disabled
Running test examples to verify correct installation

... and I have to press Ctrl-C to quit. Have I done
anything wrong?

Regards,
Farshid Mossaiby

--- Satish Balay balay at mcs.anl.gov wrote:

 On Wed, 23 Apr 2008, Farshid Mossaiby wrote:
 
  Dear Satish,
  
  Thanks for all your helpful comments.
  
  I am currently doing a 32 bit build. I will try to
  install MPICH2 binaries and report the results.
  
  I read a bit the manual of latest MPICH2; it says
 you
  can build it very easily under windows. I still
 cannot
  understand why Matt wrote:
  
  MPICH (and any other MPI) does not build
 automatically
  on Windows. You have to download binaries, which
 means
  you are stuck with whatever compilers were used to
  build it.
 
 PETSc configure cannot build it with the option
 --download-mpich=1 [or
 the alternate mpi with --download-lam=1]. If you
 know how to build it
 yourself, and then configure PETSc with it - then
 that should work.
 No one has attempted this on windows yet [as far as
 I know].
 
 Why would you prefer to build MPICH from sources on
 windows - when the
 binary install is available?
 
 Satish
 
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




Compiling PETSc with Visual Studio 2008

2008-04-22 Thread Farshid Mossaiby
Dear Satish,

First, thanks for your reply.

 Hmm - not sure I understand this - but Cygwin is one
 version of Python
  GNU utilities compiled for Windows.
 
 What alternative are you thinking of?

I meant Python for Windows, what I can download from
www.python.org, but as far as I am experiencing, it is
not possible at least in case of Python. On the
machine I am testing on, Python was installed.
Beginning to configure PETSc, I got an error about
os.getuid(). Sorry, I missed the exact error message.
I installed the Python which comes with Cygwin and it
went OK. For other utilities, I was thinking of
Interix (SUA in Windows 2008) for example...

 You can give it a try with the instructions for
 Using Visual Studio
 2005 and let us know if you encounter errors.

Well, I have been able to reach second step of
building PETSc (make all test currently running).
The only error message I have got till now is:

Warning: win32fe: Path Not Found:
c:\PROGRA~1\MICROS~1.0\SharedIDE\BIN

I am not sure what this means... There is no such
path, but why win32fe searches for it? Anything
related to version of Visual Studio?

I will report the results here.

Regards,
Farshid Mossaiby


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




Compiling PETSc with Visual Studio 2008

2008-04-21 Thread Farshid Mossaiby
Hi all,

I want to try compiling PETSc with Visual Studio 2008
(Express Edition). I know that even 2005 support in
not complete (win32fe does not autodetect it), but I
can try. I may first use Cygwin, but somebody may
later use Python and other GNU utilities compiled for
Windows.

Could you please let me know if somebody has tried it
before? And what will be the problems, if I want to do
that? Do you have a list of external tools used in
your build system?

Also, where can I find sources for win32fe?

Thanks,
Farshid Mossaiby


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




changes to petsc-dev directories

2007-12-18 Thread Farshid Mossaiby
Hi everybody,

Is there a problem with the list-server or just
everybody is too busy?

--- Barry Smith bsmith at mcs.anl.gov wrote:

 
 Very valid point.
 
 Barry
 
 On Dec 14, 2007, at 7:37 PM, Dmitry Karpeev wrote:
 
  If maint/ is going into bin/maint/, I think
 config/ should also go  
  to bin/config/
  (I think someone already suggested it).  The
 reason is that these  
  are auxiliary scripts
  used to configure and build PETSc.  Their output
 -- the actual PETSc  
  configuration --
  goes into conf/ and ${PETSC_ARCH}/conf and
 everything makes sense.
 
  Besides, there is no need to install bin/config/
 and violate one  
  standard or another,
  since an installation implies a particular
 configuration, which is  
  already in
  conf/ etc.
 
  Dmitry.
 
  On 12/14/07, Satish Balay balay at mcs.anl.gov
 wrote:
  Reforwarding e-mail blocked by majordomo [reason:
 ^config is special
  command to majordomo]
 
  Satish
 
  -- Forwarded message --
  From: Barry Smith bsmith at mcs.anl.gov 
  To: petsc-dev at mcs.anl.gov
  Subject: changes to petsc-dev directories
  Date: Sat, 8 Dec 2007 21:55:10 -0600
 
   I have moved python/PETSc to config/PETSc and
 python/ 
  BuildSystem to
config/BuildSystem
in addition I have moved the maint directory to
 bin/maint and  
  removed
conf/rules.basic.shared
 
After your next hg pull do:
mv python/BuildSystem config
rm -rf python
 
  Any user makefiles and code should not need
 any changes
 
Barry
 
 
 
 
 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping




Why the hell did 'python' move?

2007-12-11 Thread Farshid Mossaiby
Dear PETSc developers and users,

Sorry for commenting on you really great developers...
Just wanted to say that the location of tutorials and
tests is also a bit odd *for me* (anyway I am not an
expert). I expected to see a 'samples', 'tutorials' or
something like this, but found the samples at, for
example, $PETSC_DIR/src/ksp/ksp/examples/tutorials.

Just a comment, sorry if it is non-sense.

Best regards,
Farshid Mossaiby

--- Barry Smith bsmith at mcs.anl.gov wrote:

 
 On Dec 10, 2007, at 10:31 AM, Matthew Knepley wrote:
 
  I do not remember mail about this or I would have
 complained. You  
  talked
  about moving other things.
 
 It was an earlier mail
 
  Python code nuder the 'python' directory makes
  perfect sense to me. How the hell would I know
 what is in 'config'.  
  Also,
  not all of the python code is configuration code.
 
 If there was python code that was not
 configuration/build code then
 I apologize about messing up that code. As far as I
 could see at that  
 time
 python had the config code plus some no longer used
 code for generating
 python PETSc classes. I definitely believe all the
 config code should  
 be in
 the same directory with a name that indicates it is
 config. Putting
 code in a directory named after the language it is
 written in makes
 no sense to me, the directory name should indicate
 what the code/ 
 directory
 is FOR; so real people can get around the directory
 tree.
 
 Barry
 
 
 
   Matt
 
  On Dec 10, 2007 10:16 AM, Barry Smith
 bsmith at mcs.anl.gov wrote:
 
 I sent email about a week ago and no one
 complained.
 
 As someone downloads petsc-dev they see
 directories config and
  python;
  this make NO SENSE at all, how are they going to
 know that most of  
  the
  configure
  stuff is in the python directory? If I did not
 know PETSc and
  downloaded it
  I would be so pissed at the utterly stupid naming
 that I would simply
  delete the
  whole package and not even consider using it.
 Directory names are not
  for the developer (a developer can remember
 anything so long as the
  work on the package long enough), directory names
 are for the causal
  user and it is important that they make sense.
 
 Why does your finite element stuff care where
 the configuration
  code is stored At most you should have to
 change a couple little
  things.
 
 
 Barry
 
 
 
  On Dec 10, 2007, at 10:08 AM, Matthew Knepley
 wrote:
 
  How does 'config' make any more sense than
 'python'. And this
  break EVERYTHING I do with finite elements. This
 should have at
  least been discussed on petsc-dev.
 
  Matt
 
  --
  What most experimenters take for granted before
 they begin their
  experiments is infinitely more interesting than
 any results to which
  their experiments lead.
  -- Norbert Wiener
 
 
 
 
 
 
  -- 
  What most experimenters take for granted before
 they begin their
  experiments is infinitely more interesting than
 any results to which
  their experiments lead.
  -- Norbert Wiener
 
 
 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping