Ignore:
Timestamp:
Oct 30, 2017, 11:04:45 AM (7 years ago)
Author:
jvatant
Message:

Correct string management within muphy for ifort
JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/muphytitan/cfgparse.F90

    r1793 r1814  
    803803    IF (LEN_TRIM(zsname) == 0 ) zsname = "__default__"
    804804    fname = zsname//"/"//str_to_lower(TRIM(pname))
    805     !print*,"DEBUG6: ",fname
    806805    IF (.NOT.cfg_check_name(fname)) THEN
    807806       err = error("Invalid option (no name)",-9)
     
    872871      ! no options yet -> allocate
    873872      ALLOCATE(this%options(1))
    874       !this%options(1) = sca
    875       !this%options(1)%name = pname
    876       !this%options(1)%section = zsname
    877       !this%options(1)%values = values
    878873    ELSE
    879874      ! parser has options: increase this%options size (ugly copy).
     
    890885      ENDDO
    891886      DEALLOCATE(tmp)
    892       !this%options(no+1) = sca
    893       !this%options(no+1)%name = pname
    894       !this%options(no+1)%section = zsname
    895       !this%options(no+1)%values = values
    896887    ENDIF
    897888    ! always add the option at the end.
    898     !print*, words_length(this%options(no+1)%values)
    899889    this%options(no+1) = sca
    900890    CALL op_clear(sca)
     
    18391829             EXIT
    18401830           ENDIF
    1841            !print*,"DEBUG0: New section ",TRIM(name), " <- ",isec
    18421831           isec = TRIM(name)
    18431832         CASE(cfg_OPTION)
     
    18491838           ! 4. update curval
    18501839           IF (op_valid(curopt)) THEN
    1851               !print*,"DEBUG3: new opt: ",TRIM(isec)//"/"//TRIM(name)," <- ",op_full_name(curopt)
    18521840              IF (LEN(curval) > 0) &
    18531841              CALL words_extend(curopt%values,TRIM(ADJUSTL(curval)),space,.true.,.true.)
Note: See TracChangeset for help on using the changeset viewer.