src/UCRDTW_memory_parallel.cpp
/// If expected error happens, teminated the program.
If expected error happens, teminated the program.
If expected error happens teminated the program .
void error(int id)
{
    if (id == 1)
        printf("ERROR : Memory can't be allocated!!!\n\n");
    else if (id == 2)
        printf("ERROR : File not Found!!!\n\n");
    else if (id == 3)
        printf("ERROR : Can't create Output File!!!\n\n");
    else if (id == 4)
    {
        printf("ERROR : Invalid Number of Arguments!!!\n");
        printf("Command Usage:  UCR_DTW.exe  data-file  query-file   m   [R (number of points)] [number series datasets] [length of series dataset] [ 1 normalized - 0 non-normalized] [queries number] [thread number] [optional: epsilon] \n\n");
        printf("For example for 1-NN  :  UCR_DTW.exe  data.bin   query.txt   128   5   4000    256  1 10 8 \n");
        printf("For example for epsilon-range (epsilon=5):  UCR_DTW.exe  data.bin   query.txt   128   5   4000  256  1 10 8 5 \n");
    }
    exit(1);
}
void error ( int id ) { if ( id == 1 ) printf ( " \n \n " ) ; else if ( id == 2 ) printf ( " \n \n " ) ; else if ( id == 3 ) printf ( " \n \n " ) ; else if ( id == 4 ) { printf ( " \n " ) ; printf ( " \n \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; } exit ( 1 ) ; }
If expected error happens, teminated the program.
If expected error happens teminated the program .