現在又開啟了一個posterous 的Space ..
https://posterous.com/users/hesW7QElGzko2
標籤:電腦網路
replace string in files on linux
sed -i 's/old-word/new-word/g' *.txt
by VIVEK GITE
Ai is really a addicted twitter user In…
Ai is really a addicted twitter user.. In his detained period without any information, he felt blank.
comes a thought from web
from web
forrtl: Too many open files
When I make the file index, it appears that
forrtl: Too many open files
Because a non-priveleged user cannot change the # file descriptors above 1024, only root can.
ref limits.conf
To solve it, you have add the /etc/security/limits.conf with the line:
user hard nofile 32768
as root
libstdc++.so.5 in OpenSuse 11.4
When I compiled with ifort, it appeared the massage:
/opt/intel/Compiler/11.1/069/bin/intel64/fortcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
ifort: error #10273: Fatal error in /opt/intel/Compiler/11.1/069/bin/intel64/fortcom, terminated by 0x7f
those libs such as libstdc++.so.6 are in /usr/lib
, but is lake of libstdc++.so.5.
Where is it?
Also, as said before, it’s in the “compat-libstdc++-33” package
spooon in FC4 doesn’t have libstdc++.so.5 but libstdc++.so.6
bash: make: command not found in OpenSuse 11
Opensuse 11 does not install the development packages by default.
by bcrisciotti in bash: make: command not found in OpenSuse 11
then use yast to install make
sudo yast
then get into Software Management
GETFILEINFOQQ in ifort on 64bit
I accounted a problem with the GETFILEINFOQQ of ifort function such as
Lsac2Ssac_SubUse.f90(473): error #6284: There is no matching specific function for this generic function reference. [GETFILEINFOQQ]
FnameLength=GETFILEINFOQQ(EventListfile,FileInfo,FileHandle)
--------------^
and it was a problem of declaration, the previous code was
type (File$Info) :: FileInfo
integer :: FnameLength, FileHandle
character(len=32) :: LSindexfile
!
FileHandle =file$first
FnameLength=GETFILEINFOQQ(EventListfile,FileInfo,FileHandle)
LSindexfile='LS'//FileInfo.name(3:FnameLength)
And in 64 bit machine, FileHandle should be declared as 8 bit and is suggested be declared as
INTEGER(INT_PTR_KIND())
read free format .f90 in vim
The default of vim to read .f90 is fixed format, and vim will displays a yellow color when you am beyond 72 column. Then you can change it by use these command
:let fortran_free_source=1
or add the line below in ~/.vimrc
let fortran_free_source=1
from Re: VIM : used for Fortran files .f or .f90
you can also see
:help fortran.vim
ifort inquire directory
ifort can inquire not only file but also directory!!
INQUIRE (DIRECTORY="results001",EXIST=exist2)
ref:
Re: How to determine whether or not there exists a directory
Intel XL Fortran V11.1 for Linux
P.S.
GETFILEINFOQQ
http://software.intel.com/en-us/forums/showthread.php?t=68621
SYSTEMQQ
http://titan.physx.u-szeged.hu/opt/intel/fc/9.1.036/include/ifport.f90
http://www.xlsoft.com/jp/products/intel/cvf/docs/vf-html_e/azsumm/rfsystmq.htm
change systemqq to system
http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/2006-October.txt
http://coding.derkeiler.com/Archive/Fortran/comp.lang.fortran/2007-01/msg00085.html