[petsc-users] Eigenvalue problem in batch

Timothée Nicolas timothee.nicolas at gmail.com
Fri Dec 18 01:58:09 CST 2015


Hi,

Can you be a bit more specific ? You have 1000 different files for A and B
? Like, you have A_0001.bin, A_0002.bin, ... A_1000.bin and B_0001.bin,
B_0002.bin, ... B_1000.bin ?

In that case it's a bash problem and not a petsc problem, you just need to
make a loop on an integer i, use something like

printf -v i2 "%04d" ${i}

so that i2 is written as 0001, 0002, ... 1000, and not as 1, 2, ... , 1000,
concatenate i2 with 'A_' or 'B_' and put that in your launch string. I
expect it should work, you can put variables as petsc arguments.

But what do you mean with multiple cores ? You want to do it in parallel at
the same time ? Then I don't know how to do it.

Best

Timothee



2015-12-18 16:46 GMT+09:00 venkatesh g <venkateshgk.j at gmail.com>:

> Hi all,
> I am using Petsc and Slepc to solve my eigenvalue problem.
>
> I have 1000 A and B matrices saved as binary files. So I use in my script :
>
> *aprun -n 1 -N 1 ./ex7 -f1 A -f2 B -st_type sinvert -eps_target 0.01 *
>
> This is for one A and one B. So, how to do it for each A and B in multiple
> cores ?
>
> Pls. let me know.
>
> Thank you
> Venkatesh
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151218/c604426b/attachment.html>


More information about the petsc-users mailing list