Lines Matching refs:comm

20 static inline MPI_Comm PetscYAMLSetComm(MPI_Comm comm)  in PetscYAMLSetComm()  argument
23 petsc_yaml_comm = comm; in PetscYAMLSetComm()
34 MPI_Comm comm = PetscYAMLGetComm(); in PetscParseLayerYAML() local
39 …PetscCheck(node->type == YAML_MAPPING_NODE, comm, PETSC_ERR_SUP, "Unsupported YAML node type: expe… in PetscParseLayerYAML()
45 PetscCheck(keynode, comm, PETSC_ERR_LIB, "Corrupt YAML document"); in PetscParseLayerYAML()
46 PetscCheck(valnode, comm, PETSC_ERR_LIB, "Corrupt YAML document"); in PetscParseLayerYAML()
47 …PetscCheck(keynode->type == YAML_SCALAR_NODE, comm, PETSC_ERR_SUP, "Unsupported YAML node type: ex… in PetscParseLayerYAML()
55 PetscCheck(itemnode, comm, PETSC_ERR_LIB, "Corrupt YAML document"); in PetscParseLayerYAML()
56 …PetscCheck(itemnode->type == YAML_MAPPING_NODE, comm, PETSC_ERR_SUP, "Unsupported YAML node type: … in PetscParseLayerYAML()
61 … } else SETERRQ(comm, PETSC_ERR_SUP, "Unsupported YAML node type: expected sequence or mapping"); in PetscParseLayerYAML()
70 PetscCall(PetscOptionsInsertFileYAML(comm, options, STR(valnode), PETSC_TRUE)); in PetscParseLayerYAML()
90 PetscCheck(itemnode, comm, PETSC_ERR_LIB, "Corrupt YAML document"); in PetscParseLayerYAML()
99 …PetscCheck(top - kvn <= 1, comm, PETSC_ERR_SUP, "Unsupported YAML node value: expected a single ke… in PetscParseLayerYAML()
104 PetscCheck(kn, comm, PETSC_ERR_LIB, "Corrupt YAML document"); in PetscParseLayerYAML()
105 PetscCheck(vn, comm, PETSC_ERR_LIB, "Corrupt YAML document"); in PetscParseLayerYAML()
106 …PetscCheck(kn->type == YAML_SCALAR_NODE, comm, PETSC_ERR_SUP, "Unsupported YAML node type: expecte… in PetscParseLayerYAML()
109 …PetscCheck(!isMergeKey, comm, PETSC_ERR_SUP, "Unsupported YAML node value: merge key '<<' not supp… in PetscParseLayerYAML()
121 … } else SETERRQ(comm, PETSC_ERR_SUP, "Unsupported YAML node type: expected scalar or mapping"); in PetscParseLayerYAML()
149 …} else SETERRQ(comm, PETSC_ERR_SUP, "Unsupported YAML node type: expected scalar, sequence or mapp… in PetscParseLayerYAML()
156 MPI_Comm comm = PetscYAMLGetComm(); in PetscOptionsInsertStringYAML_Private() local
165 PetscCheck(!err, comm, PETSC_ERR_LIB, "YAML parser initialization error"); in PetscOptionsInsertStringYAML_Private()
169 PetscCheck(!err, comm, PETSC_ERR_LIB, "YAML parser loading error"); in PetscOptionsInsertStringYAML_Private()
230 PetscErrorCode PetscOptionsInsertFileYAML(MPI_Comm comm, PetscOptions options, const char file[], P… in PetscOptionsInsertFileYAML() argument
238 PetscCallMPI(MPI_Comm_rank(comm, &rank)); in PetscOptionsInsertFileYAML()
262 PetscCallMPI(MPI_Bcast(&yamlLength, 1, MPI_INT, 0, comm)); in PetscOptionsInsertFileYAML()
263 …PetscCheck(!require || yamlLength >= 0, comm, PETSC_ERR_FILE_OPEN, "Unable to open YAML option fil… in PetscOptionsInsertFileYAML()
267 PetscCallMPI(MPI_Bcast(yamlString, yamlLength + 1, MPI_CHAR, 0, comm)); in PetscOptionsInsertFileYAML()
269 prev = PetscYAMLSetComm(comm); in PetscOptionsInsertFileYAML()