Recent content by typeon

  1. T

    Comp Sci Fortran90: read file with variable name ( character)

    Hi there, I am trying to make a Fortran90 program that open files with this pattern: 1a041.dat wp2d2.dat qad33.dat mntf4.dat erh55.dat ...etc. so the first four digits I want to consider them as a variable character, then it comes an integer value that increases by one for every...
  2. T

    Fortran Fortran90: Reading Mixed-Type Input File

    I have made the programme and I have managed to read the xyz input ( file : cartesian) and print it to the unit 55.: fort.55 module test type molecule_position sequence character(len=1):: carbon real*8 :: x real*8 :: y real*8 :: z end type molecule_position end...
  3. T

    Fortran Fortran90: Reading Mixed-Type Input File

    Hi, The input file is a molecule, a finite flat sheet of graphene. So once the whole input is read a table with each carbon atom and its neighbours is generated. It will also calculate whether the carbon atom is in the middle or at the edge of the flake. In short, I really think it has to...
  4. T

    Fortran Fortran90: Reading Mixed-Type Input File

    Hi everyone, I am kind of new in fortran90 and I am struggling with writing this basic programme: I have an input file with a fixed format . It looks like this: c 23.345 45.342 34.345 c 12.345 56.235 67.234 c 45.567 44.345 78.345 c 56.567 78.563 97.342 where the first column...
Back
Top