lammps-master/lib/gpu/lal_atom.h
inline double transfer_time() {
    double total=time_pos.total_seconds();
    time_pos.zero_total();
    if (_charge) {
      total+=time_q.total_seconds();
      time_q.zero_total();
    }
    if (_rot) {
      total+=time_quat.total_seconds();
      time_quat.zero_total();
    }
    if (_vel) {
      total+=time_vel.total_seconds();
      time_vel.zero_total();
    }

    return total+_time_transfer/1000.0;
  }
/// Return the total time for host/device data transfer
/** Zeros the total so that the atom times are only included once **/
Return the total time for host/device data transfer
Zeros the total so that the atom times are only included once
Return the total time for host / device data transfer Zeros the total so that the atom times are only included once
inline double transfer_time() {
    double total=time_pos.total_seconds();
    time_pos.zero_total();
    if (_charge) {
      total+=time_q.total_seconds();
      time_q.zero_total();
    }
    if (_rot) {
      total+=time_quat.total_seconds();
      time_quat.zero_total();
    }
    if (_vel) {
      total+=time_vel.total_seconds();
      time_vel.zero_total();
    }
    return total+_time_transfer/1000.0;
  }
inline double transfer_time ( ) { double total = time_pos . total_seconds ( ) ; time_pos . zero_total ( ) ; if ( _charge ) { total += time_q . total_seconds ( ) ; time_q . zero_total ( ) ; } if ( _rot ) { total += time_quat . total_seconds ( ) ; time_quat . zero_total ( ) ; } if ( _vel ) { total += time_vel . total_seconds ( ) ; time_vel . zero_total ( ) ; } return total + _time_transfer / 1000.0 ; }
Return the total time for host/device data transfer
Zeros the total so that the atom times are only included once
Return the total time for host / device data transfer Zeros the total so that the atom times are only included once