Changeset 1814 for trunk/LMDZ.TITAN/libf/muphytitan/cfgparse.F90
- Timestamp:
- Oct 30, 2017, 11:04:45 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/muphytitan/cfgparse.F90
r1793 r1814 803 803 IF (LEN_TRIM(zsname) == 0 ) zsname = "__default__" 804 804 fname = zsname//"/"//str_to_lower(TRIM(pname)) 805 !print*,"DEBUG6: ",fname806 805 IF (.NOT.cfg_check_name(fname)) THEN 807 806 err = error("Invalid option (no name)",-9) … … 872 871 ! no options yet -> allocate 873 872 ALLOCATE(this%options(1)) 874 !this%options(1) = sca875 !this%options(1)%name = pname876 !this%options(1)%section = zsname877 !this%options(1)%values = values878 873 ELSE 879 874 ! parser has options: increase this%options size (ugly copy). … … 890 885 ENDDO 891 886 DEALLOCATE(tmp) 892 !this%options(no+1) = sca893 !this%options(no+1)%name = pname894 !this%options(no+1)%section = zsname895 !this%options(no+1)%values = values896 887 ENDIF 897 888 ! always add the option at the end. 898 !print*, words_length(this%options(no+1)%values)899 889 this%options(no+1) = sca 900 890 CALL op_clear(sca) … … 1839 1829 EXIT 1840 1830 ENDIF 1841 !print*,"DEBUG0: New section ",TRIM(name), " <- ",isec1842 1831 isec = TRIM(name) 1843 1832 CASE(cfg_OPTION) … … 1849 1838 ! 4. update curval 1850 1839 IF (op_valid(curopt)) THEN 1851 !print*,"DEBUG3: new opt: ",TRIM(isec)//"/"//TRIM(name)," <- ",op_full_name(curopt)1852 1840 IF (LEN(curval) > 0) & 1853 1841 CALL words_extend(curopt%values,TRIM(ADJUSTL(curval)),space,.true.,.true.)
Note: See TracChangeset
for help on using the changeset viewer.