525 |
if test -d $1 ; then |
if test -d $1 ; then |
526 |
( |
( |
527 |
cd $1 ; shift |
cd $1 ; shift |
528 |
|
inpMPI=`(cd ../$1 ; find . -name "*.mpi" -print | sed 's:^\./::')` |
529 |
|
for xx in $inpMPI ; do |
530 |
|
if test -r "../"$1"/"$xx ; then |
531 |
|
# found 1 _mpi sfx file in 1rst input dir and it is readable |
532 |
|
yy=`echo $xx | sed 's:\.mpi$::'` |
533 |
|
if test "x$MPI" = "xt" ; then |
534 |
|
# mpi test: remove symbolic link & link _mpi sfx file |
535 |
|
if test -h $yy ; then rm -f $yy ; fi |
536 |
|
if test ! -r $yy ; then |
537 |
|
ln -sf "../"$1"/"$xx $yy ; |
538 |
|
printf "$xx " 1>&2 |
539 |
|
fi |
540 |
|
else |
541 |
|
# not mpi test: remove symbolic link |
542 |
|
if test -h $yy ; then rm -f $yy ; fi |
543 |
|
fi |
544 |
|
fi |
545 |
|
done |
546 |
if test -r "../"$1"/eedata.mth" ; then |
if test -r "../"$1"/eedata.mth" ; then |
547 |
# found eedata.mth in 1rst input dir and it is readable |
# found eedata.mth in 1rst input dir and it is readable |
548 |
if test "x$MULTI_THREAD" = "xt" ; then |
if test "x$MULTI_THREAD" = "xt" ; then |