From 9a64f3dd85656f962e43fdd327b38363ea2d1772 Mon Sep 17 00:00:00 2001 From: Christoph Kords Date: Mon, 30 May 2011 09:09:19 +0000 Subject: [PATCH] * comments are now recognized by IO even when they do not appear at the beginning of the line * no need for the zero entries in the material.config anymore --- code/IO.f90 | 3 +++ code/config/material.config | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/code/IO.f90 b/code/IO.f90 index 55501a112..3a98e478d 100644 --- a/code/IO.f90 +++ b/code/IO.f90 @@ -676,6 +676,9 @@ endfunction do while (verify(line(right+1:),sep)>0) left = right + verify(line(right+1:),sep) right = left + scan(line(left:),sep) - 2 + if ( line(left:left) == '#' ) then + exit + endif if ( IO_stringPos(1)