Recent content by s_hy

  1. S

    Fortran Fortran 90 command to write only specific lines

    Hi all. I did search in internet but couldn't find the specific answer for my specific problem.I need to run a program with a datafile in 3000 time step and the output will 1.dat to 3000.dat, which is every single data output size 200Mb. To safe the storage, I would like to write only every...
  2. S

    Collision frequency unit conversion

    hi all I have a question about unit for collision frequency. The unit is collision per second and is it same with hertz? Thanks
  3. S

    Can anyone provide the FDTD paper on Two Dimensional Plane Wave implementation?

    Hi, I am looking for below paper. Already contact both writers but got no reply. Anyone who have this or can access this journal, can you please send it to me. Winton, S., and Rappaport, C. ``Implementation of a Two Dimensional Plane Wave FDTD Using One Dimensional FDTD on the Lattice Edges,''...
  4. S

    Fortran Can we compile fortran 90 on external hdd?

    I have found out that my external couldn't do the compilation work. It happened to be as storage only. I have wrote a test code to write all the data into path subroutine fd1d implicit none double precision :: f0,miu,delta,S,E0,Ca,Da,tdelta,c,Cb,Db,lambda...
  5. S

    Fortran Can we compile fortran 90 on external hdd?

    thank you for all the reply. I have got the idea right now.
  6. S

    Fortran Can we compile fortran 90 on external hdd?

    Hi, I need to compile a programming written in fortran90 and the output will be in 10 000 data files(maybe more) size 3.5Mb each. My notebook's memory is not enough to store all the data file, I am using Linux 3.11.6-4-desktop with openSUSE 13.1 (Bottle) (x86_64). I have 1TB external hdd and...
  7. S

    Fortran What Does a Positive Width Error in Fortran Format Specifier Mean?

    Actually, I have 20 .dat files containing (x,y,z). From each files, I need to extract data from row (i,j) = (120,120), and the value from all the files will be write into one new file. I am really not an expert in fortran. Please guide me. thank you
  8. S

    Fortran What Does a Positive Width Error in Fortran Format Specifier Mean?

    Hi all, I got this error: rm -f *.o *.mod *.MOD *.exe *.stackdump main gfortran -g -I/usr/include -c main.f90 gfortran -g -I/usr/include -c subroutines.f90 subroutines.f90:21.16: 10 format(data,'i3.3','.dat') 1 Error: Positive width required in format...
  9. S

    Read file from multiples .dat files and choose only one point

    actually, I did wrote code in matlab numFiles = 822; myData = cell(1,numFiles); startRow = 6886; endRow = 6886; for fileNum = 1:numFiles fileName = sprintf('*.dat',fileNum); myData{fileNum} = importfile(fileName,startRow,endRow); end %% Format string for each line of text: formatSpec...
  10. S

    Read file from multiples .dat files and choose only one point

    Hi all. I have 1200 .dat files containing x,y,z . What I need to do is to open all the files and choose only one single point from all the files, in example point (x120,y120,z120) from all 1200 .dat file and save it into new .dat file. Can anyone teach me how to do that either in fortran or...
  11. S

    [FDTD/FORTRAN] problem with tfsf boundary and berenger's pml

    I am newbie in Fortran. I may mislook about these things. I noted that pi should be assigned as pi = 3.14159265358979. for double precision constant, as example c = 3e8 means that c = light velocity = 3x10**8. about cosphi and sinphi, I don't understand why did you suggested that?
  12. S

    [FDTD/FORTRAN] problem with tfsf boundary and berenger's pml

    sorry...I expected anyone who know FDTD are familiar with term tfsf and berenger's pml because you can find it in fdtd textbook everywhere. Sorry, I will more concern about this. Thank you for your advise. FDTD : finite difference time domain TFSf : total field scattered field PML : perfectly...
  13. S

    [FDTD/FORTRAN] problem with tfsf boundary and berenger's pml

    Steamking, I have changed the weird part, but the output is still same.
Back
Top