Fix misprint in diagnostic message and split two long lines.
Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
committed by
Bård Skaflestad
parent
a606cd1e76
commit
1d1bf4b4f7
13
preprocess.c
13
preprocess.c
@@ -215,11 +215,14 @@ process_vertical_faces(int direction,
|
|||||||
int num_intersections;
|
int num_intersections;
|
||||||
int *ptr;
|
int *ptr;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
for (j=0; j<ny+direction; ++j) {
|
for (j=0; j<ny+direction; ++j) {
|
||||||
for (i=0; i<nx+1-direction; ++i){
|
for (i=0; i<nx+1-direction; ++i){
|
||||||
|
|
||||||
if (!checkmemory(nz, out, intersections)){
|
if (! checkmemory(nz, out, intersections)) {
|
||||||
fprintf(stderr, "Could not allocat enough space in process_vertical_faces\n");
|
fprintf(stderr,
|
||||||
|
"Could not allocate enough space in "
|
||||||
|
"process_vertical_faces()\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -314,8 +317,10 @@ process_horizontal_faces(int **intersections,
|
|||||||
for (i=0; i<nx; ++i) {
|
for (i=0; i<nx; ++i) {
|
||||||
|
|
||||||
|
|
||||||
if (!checkmemory(nz, out, intersections)){
|
if (! checkmemory(nz, out, intersections)) {
|
||||||
fprintf(stderr, "Could not allocat enough space in process_horizontal_faces\n");
|
fprintf(stderr,
|
||||||
|
"Could not allocate enough space in "
|
||||||
|
"process_horizontal_faces()\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user