Lines Matching refs:honee
23 static PetscErrorCode SmartSimTrainingSetup(Honee honee) { in SmartSimTrainingSetup() argument
30 PetscCall(HoneeGetSmartSimData(honee, &smartsim)); in SmartSimTrainingSetup()
31 PetscCallMPI(MPI_Comm_rank(honee->comm, &rank)); in SmartSimTrainingSetup()
43 static PetscErrorCode SmartSimSetup(Honee honee) { in SmartSimSetup() argument
52 PetscOptionsBegin(honee->comm, NULL, "Options for SmartSim integration", NULL); in SmartSimSetup()
58 PetscCallMPI(MPI_Comm_rank(honee->comm, &rank)); in SmartSimSetup()
65 …PetscCall(HoneeSetContainer(honee, SMARTSIM_KEY, smartsim, (PetscCtxDestroyFn *)SmartSimDataDestro… in SmartSimSetup()
67 PetscCall(SmartSimTrainingSetup(honee)); in SmartSimSetup()
79 PetscErrorCode HoneeGetSmartSimData(Honee honee, SmartSimData *smartsim) { in HoneeGetSmartSimData() argument
83 PetscCall(HoneeHasContainer(honee, SMARTSIM_KEY, &has_smartsim)); in HoneeGetSmartSimData()
84 if (!has_smartsim) PetscCall(SmartSimSetup(honee)); in HoneeGetSmartSimData()
85 PetscCall(HoneeGetContainer(honee, SMARTSIM_KEY, smartsim)); in HoneeGetSmartSimData()