Changeset 8196


Ignore:
Timestamp:
05/06/11 21:30:59 (14 years ago)
Author:
Mathieu Morlighem
Message:

Added error message if bad usage (prevent issm from crashing if one runs ./issm.exe)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/solutions/issm.cpp

    r7307 r8196  
    4848        MPI_Comm_size(MPI_COMM_WORLD,&num_procs);
    4949
     50        /*First check number of inputs*/
    5051        _printf_(true,"Launching solution sequence\n");
     52        if(argc<2)_error_("Usage error: no solution requested");
    5153        solution_type=StringToEnum(argv[1]);
    5254        petscoptionsfilename=argv[4];
    5355        lockname=argv[6];
    54 
    5556
    5657        MPI_Barrier(MPI_COMM_WORLD); start_init=MPI_Wtime();
Note: See TracChangeset for help on using the changeset viewer.