Skip to content

Commit 834f635

Browse files
committed
Add coresPerModel to rootSAM in OpenSeesInput based on theSIM configuration
1 parent 75303c4 commit 834f635

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

modules/createSAM/openSeesInput/OpenSeesInput.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,14 @@ main(int argc, char **argv) {
165165
if (useDamping != NULL) {
166166
json_object_set(rootSAM,"useDamping", useDamping);
167167
}
168+
json_t *numCoresPerModel = json_object_get(theSIM, "numCores");
169+
if (numCoresPerModel != NULL) {
170+
json_object_set(rootSAM,"coresPerModel", numCoresPerModel);
171+
} else {
172+
json_object_set(rootSAM,"coresPerModel", json_integer(1));
173+
}
174+
175+
168176
json_t *theRVs = json_object_get(theSIM,"randomVar");
169177

170178
// check nodes exists

0 commit comments

Comments
 (0)