Skip to content

a bug in RST_FROM_GLOBAL #134

Description

@weiyuan-jiang

It may introduce a bug by commenting out this block. The next if-else block will never goes to else branch.

self.rqdExeInp['RST_FROM_GLOBAL'] = 1
# skip checking. It is users' reponsibility to make it right!
#if self.rqdExeInp['RESTART'].isdigit() :
# if int(self.rqdExeInp['RESTART']) == 1 :
# _numg = int(linecache.getline(self.rqdExeInp['CATCH_DEF_FILE'], 1).strip())
# _numd = _numg
# ldas_domain = self.rqdExeInp['RESTART_PATH']+ \
# self.rqdExeInp['RESTART_ID'] + \
# '/output/'+self.rqdExeInp['RESTART_DOMAIN']+'/rc_out/'+self.rqdExeInp['RESTART_ID']+'.ldas_domain.txt'
# if os.path.isfile(ldas_domain) :
# _numd = int(linecache.getline(ldas_domain, 1).strip())
#
# if _numg != _numd :
# self.rqdExeInp['RST_FROM_GLOBAL'] = 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions