Author Topic: Suppress the interacive user request "Are filenames correct?"  (Read 6923 times)

Mari

  • Jr. Member
  • **
  • Posts: 11
Suppress the interacive user request "Are filenames correct?"
« 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!
« Last Edit: January 21, 2019, 11:09:53 PM by Mari »

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: Suppress the interacive query "Are filenames correct?"
« Reply #1 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

bamiko

  • Jr. Member
  • **
  • Posts: 11
Re: Suppress the interacive user request "Are filenames correct?"
« Reply #2 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?

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: Suppress the interacive user request "Are filenames correct?"
« Reply #3 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.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1164
Re: Suppress the interacive user request "Are filenames correct?"
« Reply #4 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.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1164
Re: Suppress the interacive user request "Are filenames correct?"
« Reply #5 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.

Mari

  • Jr. Member
  • **
  • Posts: 11
Re: Suppress the interacive user request "Are filenames correct?"
« Reply #6 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!