Skip to content

Commit

Permalink
replace init_helper with .write
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>

fix init= for locale accum

Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Jul 17, 2023
1 parent 048e735 commit 870accc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/internal/LocaleModelHelpSetup.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ module LocaleModelHelpSetup {
}
proc init=(other: chpl_root_locale_accum) {
this.complete();
this.nPUsPhysAcc.init_helper(other.nPUsPhysAcc.read());
this.nPUsPhysAll.init_helper(other.nPUsPhysAll.read());
this.nPUsLogAcc.init_helper(other.nPUsLogAcc.read());
this.nPUsLogAll.init_helper(other.nPUsLogAll.read());
this.maxTaskPar.init_helper(other.maxTaskPar.read());
this.nPUsPhysAcc.write(other.nPUsPhysAcc.read());
this.nPUsPhysAll.write(other.nPUsPhysAll.read());
this.nPUsLogAcc.write(other.nPUsLogAcc.read());
this.nPUsLogAll.write(other.nPUsLogAll.read());
this.maxTaskPar.write(other.maxTaskPar.read());
}

proc accum(loc:locale) {
Expand Down

0 comments on commit 870accc

Please sign in to comment.