Commit 30438780 authored by David Expósito Singh's avatar David Expósito Singh
Browse files

SolvingCharacterCodingProblems

parent e76642d6
Showing with 3 additions and 3 deletions
+3 -3
File added
......@@ -254,7 +254,7 @@ int main (int argc, char** argv)
printf("\n");
while (fgets (readline,1000,file) != NULL) {
if(readline[0]!='#' && readline[0]!='\n'){
if(readline[0]!='#' && readline[0]!='\n' && readline[0]!='\r'){
record = strtok (readline, token); // App name
if(record==NULL){fprintf (stderr, "\n Error0 parsing %s file \n",argv[2]);exit(1); }
......@@ -264,7 +264,7 @@ int main (int argc, char** argv)
if(strcmp(record,"cg")==0) class=2;
if(strcmp(record,"epigraph")==0) class=3;
if(class==0){
fprintf (stderr, "\n Error0 in %s file: application name not valid \n",argv[2]);
fprintf (stderr, "\n Error0 in %s file: application name not valid:: %s \n",argv[2],readline);
exit(1);
}
strcpy(appname[napp], record);
......
......@@ -108,7 +108,7 @@ int MPI_File_write_all(MPI_File fh, const void *buf, int count, MPI_Datatype dat
else{
iot1=MPI_Wtime();
iot2=MPI_Wtime();
while((iot2-iot1)<EMPI_GLOBAL_dummyIO) iot2=MPI_Wtime(); // Delaty EMPI_GLOBAL_dummyIO seconds. Active waiting.
while((iot2-iot1)<EMPI_GLOBAL_dummyIO) iot2=MPI_Wtime(); // Delay EMPI_GLOBAL_dummyIO seconds. Active waiting.
err=0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment