fi
# Don't use wc -l to compute it to avoid issues with trailing \n at EOF
-hostfile_procs=`grep -c [a-zA-Z0-9] $HOSTFILE`
+hostfile_procs=`grep -c "[a-zA-Z0-9]" $HOSTFILE`
if [ -z "${NUMPROCS}" ] ; then
# Use the amount of processes in the hostfile as default value for the -np parameter
foreach(srcfile ${stdo_std_smpi})
set(dstfile ${srcfile})
string(REPLACE "${CMAKE_HOME_DIRECTORY}" "${CMAKE_BINARY_DIR}" dstfile "${dstfile}")
- string(REGEX REPLACE "/[^/]*.std" "/" dstfile "${dstfile}")
string(REGEX REPLACE "/[^/]*.stdo" "/" dstfile "${dstfile}")
+ string(REGEX REPLACE "/[^/]*.std" "/" dstfile "${dstfile}")
#message("copy ${srcfile} to ${dstfile}")
file(COPY ${srcfile} DESTINATION ${dstfile})
endforeach()
Received A
A(1,1) = (1.,1.) A(1,2) = (1.,2.)
- A(2,1) = (2.,1.) A(2,2) = (2.,2.)
-*** Testing Fortran send ***
+ A(2,1) = (2.,1.) A(2,2) = (2.,2.)
\ No newline at end of file