Amjad, 

Have you thought of using the system call: 


"system(const char *string);" 


Type "man system" for a description. You can pass any string 
to the shell to be run with this call. For instance: 


system("date > date.out"); 


would instruct the shell to place the current date and time 
in the file date.out. If the command you wish to run changes 
cyclically y ou would have to manage the changes from inside 
the program. I am assuming a C program here. 


Regards, 


rbw 






----- Original Message ----- 
From: "amjad ali" <amja...@gmail.com> 
To: "Beowulf Mailing List" <beowulf@beowulf.org> 
Sent: Friday, August 14, 2009 6:44:44 PM GMT -06:00 US/Canada Central 
Subject: [Beowulf] METIS Partitioning within program 

Hi all, 

For my parallel code to run, I first make grid partitioning on command line 
then for running the parallel code I give hard-code the path of METIS-partition 
files. It is very cumbersome if I need to run code with different grids and for 
different -np value. Please tell me how to call METIS partitioning routine from 
within the program run so that whatever -np value would be we are at ease. 

THANKS A LOT FOR YOUR ATTENTION. 

Regards, 
Amjad Ali. 

_______________________________________________ Beowulf mailing list, 
Beowulf@beowulf.org sponsored by Penguin Computing To change your subscription 
(digest mode or unsubscribe) visit 
http://www.beowulf.org/mailman/listinfo/beowulf 
_______________________________________________
Beowulf mailing list, Beowulf@beowulf.org sponsored by Penguin Computing
To change your subscription (digest mode or unsubscribe) visit 
http://www.beowulf.org/mailman/listinfo/beowulf

Reply via email to