Changeset 580


Ignore:
Timestamp:
05/21/09 15:04:10 (16 years ago)
Author:
Mathieu Morlighem
Message:

nsteps+1 time steps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/parallel/OutputThermal.cpp

    r567 r580  
    2121
    2222        /*intermediary: */
    23         FemModel*  fem=NULL;
     23        FemModel* fem=NULL;
    2424        NodeSets* nodesets=NULL;
    2525        Vec       partition=NULL;
     
    2727       
    2828        /* standard output: */
    29         Vec partition_shifted=NULL;
     29        Vec     partition_shifted=NULL;
    3030        double* serial_partition=NULL;
    3131
     
    3535        double ndt,dt;
    3636        int    nsteps;
     37        int    nstepsplusone;
    3738        int    sub_analysis_type;
    3839       
     
    6566                nsteps=(int)(ndt/dt);
    6667        }
     68        nstepsplusone=nsteps+1;
    6769
    6870        /*allocate t_g and m_g arrays: */
     
    9193
    9294                /*Write time steps: */
    93                 WriteDataToDisk(&time,&nsteps,&one,"Mat",fid);
     95                WriteDataToDisk(&time,&nstepsplusone,&one,"Mat",fid);
    9496
    9597                /*Write solutions to disk: */
Note: See TracChangeset for help on using the changeset viewer.