FEAP User Forum

FEAP => Parallel FEAP => Topic started by: Mari on January 21, 2019, 12:50:19 AM

Title: Suppress the interacive user request "Are filenames correct?"
Post by: Mari on January 21, 2019, 12:50:19 AM
Hello,

i would like to run calculations with parfeap on a high performance cluster, which is why I have to prevent user requests. The calculation should start immediately after entering the calculation command (mpirun -n 2 $FEAPHOME8_5/parfeap/feap -ksp_type cg -pc_type jacobi) without asking whether the filenames are correct or not.
Where can I change this in the (parfeap) code?

Thank you in advance!
Title: Re: Suppress the interacive query "Are filenames correct?"
Post by: Prof. R.L. Taylor on January 21, 2019, 09:44:13 AM
This seems dangerous.  How are you going to set the filnames for the program to run?
If you do need to do it:

1. Copy filnam.f to the ./parfeap directory  from ./program   --- you do not want this in the serial program

2. Around line 258 you will find the comment 'Start execution' -- this is where the input is made.

add a line:    go to 100  before the read
Title: Re: Suppress the interacive user request "Are filenames correct?"
Post by: bamiko on January 25, 2019, 02:07:48 AM
In standard mode giving filenames through "./feap -iIFILENAME  -o... -r... -s... -p..." works well. Is it different in parfeap?
Title: Re: Suppress the interacive user request "Are filenames correct?"
Post by: Prof. R.L. Taylor on January 25, 2019, 09:51:49 AM
Try it to see.  It should, and if it does you do not need to change the filnam  - all you should need to specify is the -iIxxxx  the rest will be set by default.
Title: Re: Suppress the interacive user request "Are filenames correct?"
Post by: Prof. S. Govindjee on January 29, 2019, 08:51:22 PM
In parFEAP the call to doarg( ) has been commented out in parfeap/filargs.f.  We never finished adding this feature for parfeap.  If you follow the code in serial feap and then look at parfeap you should be able to activate the feature.

I'll look at making the change on our end to so that it is available in the next release.
Title: Re: Suppress the interacive user request "Are filenames correct?"
Post by: Prof. S. Govindjee on February 01, 2019, 01:50:45 PM
Here is a fix:

1.  edit parfeap/filargs.F and remove the comment on the call to doargs( )

2.  add the attached doargs.f to the parfeap directory

3.  add doargs.o to the list of files in makefile

4.  run make install

To use:

 mpirun -n $FEAPHOME8_5/parfeap/feap -iIfile_0001

Note you have to give the name to the first file of the partitioned set.  Also the only permitted options are -i -r and -d.
Title: Re: Suppress the interacive user request "Are filenames correct?"
Post by: Mari on February 14, 2019, 11:14:16 PM
Thank you for your quick and helpful answers! I had already tried Prof. Taylor's first suggestion and it worked. However, I will probably try the other suggestions soon.

Thanks again to everyone!