/[escript]/trunk/paso/src/Transport.c
ViewVC logotype

Diff of /trunk/paso/src/Transport.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3641 by caltinay, Wed Mar 30 02:24:33 2011 UTC revision 3642 by caltinay, Thu Oct 27 03:41:51 2011 UTC
# Line 14  Line 14 
14    
15  /**************************************************************/  /**************************************************************/
16    
17  /* Paso: TransportProblem (see Paso_TransportSolver_solve)   */                                        /* Paso: TransportProblem (see Paso_TransportSolver_solve)    */                                      
18    
19  /**************************************************************/  /**************************************************************/
20    
21  /* Author: l.gross@uq.edu.au                                */  /* Author: l.gross@uq.edu.au                                  */
22    
23  /**************************************************************/  /**************************************************************/
24    
# Line 29  Line 29 
29    
30  /**************************************************************/  /**************************************************************/
31    
32  /* free all memory used by                                */  /* free all used memory                                       */
33    
34  void Paso_TransportProblem_free(Paso_TransportProblem* in) {  void Paso_TransportProblem_free(Paso_TransportProblem* in) {
35       if (in!=NULL) {       if (in!=NULL) {
# Line 166  void Paso_TransportProblem_setUpConstrai Line 166  void Paso_TransportProblem_setUpConstrai
166     const index_t* main_iptr=Paso_SparseMatrix_borrowMainDiagonalPointer(fctp->mass_matrix->mainBlock);     const index_t* main_iptr=Paso_SparseMatrix_borrowMainDiagonalPointer(fctp->mass_matrix->mainBlock);
167        
168     if ( fctp->valid_matrices ) {     if ( fctp->valid_matrices ) {
169        Esys_setError(VALUE_ERROR, "Paso_TransportProblem_insertConstraint: you must not insert a constraint is a valid system.");        Esys_setError(VALUE_ERROR, "Paso_TransportProblem_setUpConstraint: Cannot insert a constraint into a valid system.");
170        return;        return;
171     }     }
172     if (factor<=0) {     if (factor<=0) {
173        Esys_setError(VALUE_ERROR, "Paso_TransportProblem_insertConstraint: constraint_factor needs to be positive.");        Esys_setError(VALUE_ERROR, "Paso_TransportProblem_setUpConstraint: constraint_factor needs to be positive.");
174        return;        return;
175     }     }
176    

Legend:
Removed from v.3641  
changed lines
  Added in v.3642

  ViewVC Help
Powered by ViewVC 1.1.26