Skip to content

Commit 382f43d

Browse files
committed
Increase the number of zones/areas as some networks seem to have more of them.
1 parent 67bcf96 commit 382f43d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ps/psreaddata.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ PetscErrorCode PSReadMatPowerData(PS ps, const char netfile[]) {
574574
ps->read_load_cost = PETSC_FALSE;
575575

576576
ps->nzones = ps->nareas = 0;
577-
ierr = PetscCalloc1(100,&ps->zones);CHKERRQ(ierr);
578-
ierr = PetscCalloc1(100,&ps->areas);CHKERRQ(ierr);
577+
ierr = PetscCalloc1(500,&ps->zones);CHKERRQ(ierr);
578+
ierr = PetscCalloc1(500,&ps->areas);CHKERRQ(ierr);
579579
while ((out = fgets(line, MAXLINE, fp)) != NULL) {
580580
if (strstr(line, "mpc.baseMVA")) {
581581
/* Read base MVA */

0 commit comments

Comments
 (0)