Recent content by barrowes

  1. B

    Fortran Goto statement, mostly regarding Fortran

    If you want to refactor, or get rid of, goto's in fortran code, there is a good free program for linux or windows, spag from polyhedron: http://www.polyhedron.com/pflinux0html This will refactor 60-80% of the goto's from your code. I wrote a program I call remgoto that I use to remove all...
  2. B

    Strange indexing in Fortran Code

    Here is a little MATLAB code and an accompanying fortran snippet to help with the translation: First the MATLAB code: F2=[1:13*76*2]; fid=fopen('test1','w'); fprintf(fid,'%16.8f %16.8f %16.8f %16.8f \n',F2); fclose(fid) f2=reshape(F2,[13,76,2]); f2(1:13,1,1) f2(1,1:10,1)...
Back
Top