Fortran locate symbol in data file

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
agalya
Messages
9
Reaction score
0
I need to look for the presence of '////' in my data file
i could read it as character
since i need to eliminate them from the file,
I've tried to avoid them using
if(xx .eq. '////') then
but is not working the error comes as
if(mt.ne. '////')then
Equality operator at (1) must operate on two scalar (not array) subexpressions, two function invocations returning arithmetic or character scalars, or a combination of both --
but the subexpression at (2)(it '////') is an array

how to achieve what I am thinking?
Can somebody help me in this regard
thanks in advance
 
Last edited:
Physics news on Phys.org