Changeset 27974


Ignore:
Timestamp:
10/27/23 16:46:07 (17 months ago)
Author:
Cheng Gong
Message:

ADD: complete StringToEnum in the julia code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh

    r27154 r27974  
    213213cat <<END >> $ISSM_DIR/src/c/shared/Enum/issmenums.jl
    214214end
     215
     216function StringToEnum(name::String)
     217END
     218cat temp |  awk '{print "\tif(name==\"" substr($1,1,length($1)-4) "\") return " $1 "  end"}' >> $ISSM_DIR/src/c/shared/Enum/issmenums.jl
     219
     220cat <<END >> $ISSM_DIR/src/c/shared/Enum/issmenums.jl
     221        error("Enum ", name, " not found");
     222end
    215223END
    216224#}}}
Note: See TracChangeset for help on using the changeset viewer.