[Wien] lapw1para_lapw
Tomohiko Tasaka
tasaka at affinity-science.com
Sat Jul 18 14:56:00 CEST 2009
Hello,
If hostname includes "-" character, parallel job can't work well.
because of regular expression's problem(i.e. buffer of sed command).
For example, the first command can't return the output.
$ echo "grape-01" | sed -e '1p' -e 'd' | sed -e '/\(^[a-zA-Z0-9]*$\)/p' -e 'd'
$ echo "grape-01" | sed -e '1p' -e 'd' | sed -e '/\(^[a-zA-Z0-9\-]*$\)/p' -e 'd'
grape-01
$
Thus, it would be helpful if you could update lapw1para_lapw
and lapw0para_lapw script like as below.
diff -urN wien2k_09.1/lapw0para_lapw wien2k_09.1.alt/lapw0para_lapw
--- wien2k_09.1/lapw0para_lapw 2009-07-18 21:27:24.000000000 +0900
+++ wien2k_09.1.alt/lapw0para_lapw 2009-07-18 21:28:11.000000000 +0900
@@ -145,7 +145,7 @@
# create .machine0 file
# convert the single lines with multiple entries to
# a file with one entry per line
-sed -e "1p" -e 'd' $TMP | sed -e '/\(^[a-zA-Z0-9]*$\)/p' -e '/\(^[a-zA-Z0-9]*:[0-9]*$\)/p' -e "s/ */\\
+sed -e "1p" -e 'd' $TMP | sed -e '/\(^[a-zA-Z0-9\-]*$\)/p' -e '/\(^[a-zA-Z0-9\-]*:[0-9]*$\)/p' -e "s/ */\\
/gp" -e 'd' >.machine0
echo -------- .machine0 : $number_per_job processors
rm $TMP
diff -urN wien2k_09.1/lapw1para_lapw wien2k_09.1.alt/lapw1para_lapw
--- wien2k_09.1/lapw1para_lapw 2009-07-18 21:25:37.000000000 +0900
+++ wien2k_09.1.alt/lapw1para_lapw 2009-07-18 21:28:25.000000000 +0900
@@ -363,7 +363,7 @@
# a file with one entry per line
#echo $TMP
#cat $TMP
-sed -e "${i}p" -e 'd' $TMP | sed -e '/\(^[a-zA-Z0-9]*$\)/p' -e '/\(^[a-zA-Z0-9]*:[0-9]*$\)/p' -e "s/ */\\
+sed -e "${i}p" -e 'd' $TMP | sed -e '/\(^[a-zA-Z0-9\-]*$\)/p' -e '/\(^[a-zA-Z0-9\-]*:[0-9]*$\)/p' -e "s/
*/\\
/gp" -e 'd' >.machine$i
#echo -------- .machine$i : $number_per_job[$i] processors
#cat .machine$i
if there are more suitable matching pattern, please add them.
With best regards,
Tomo
More information about the Wien
mailing list