Oasis3 4.0.2
|
00001 SUBROUTINE skip (cd_one, id_len) 00002 ! 00003 !**** SKIP 00004 ! 00005 ! Purpose: 00006 ! Skip line if it is a comment 00007 ! 00008 ! Interface: 00009 ! Call skip (cl_one) 00010 ! 00011 ! Method: 00012 ! Read the first caracter of the line and skip line if 00013 ! it is a comment 00014 ! 00015 ! External: 00016 ! none 00017 ! 00018 ! Files: 00019 ! none 00020 ! 00021 ! References: 00022 ! 00023 ! History: 00024 ! -------- 00025 ! Version Programmer Date Description 00026 ! ------------------------------------------------ 00027 ! 2.5 A.Caubel 2002/04/04 created 00028 ! 00029 !*----------------------------------------------------------------------- 00030 ! 00031 !** + DECLARATIONS 00032 ! 00033 ! 00034 !** ++ Include files 00035 ! 00036 USE mod_unit 00037 ! 00038 !** ++ Local declarations 00039 ! 00040 INTEGER (kind=ip_intwp_p) :: ib,id_len 00041 CHARACTER(len=80) :: cl_line 00042 CHARACTER(len=1), DIMENSION(id_len) :: cd_one 00043 CHARACTER(len=1) :: cl_two 00044 ! 00045 !*----------------------------------------------------------------------- 00046 ! 00047 cl_two='#' 00048 100 IF (cd_one(1) .NE. cl_two) GO TO 120 00049 READ (UNIT = nulin, FMT = 1001) cl_line 00050 DO ib = 1,id_len 00051 cd_one(ib) = cl_line(ib:ib) 00052 END DO 00053 GO TO 100 00054 120 CONTINUE 00055 1001 FORMAT(A80) 00056 ! 00057 !*----------------------------------------------------------------------- 00058 ! 00059 END SUBROUTINE skip 00060 ! 00061 !*========================================================================