Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bernard-giroux committed Mar 14, 2020
1 parent c4e9d2f commit 40f084b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ttcr/Grid3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ namespace ttcr {
const std::vector<std::vector<sxyz<T1>>>& Rx,
std::vector<std::vector<T1>>& traveltimes) const {

if ( Tx.size() == 0 ) {
if ( Tx.size() == 1 ) {
this->raytrace(Tx[0], t0[0], Rx[0], traveltimes[0], 0);
} else {
std::vector<size_t> blk_size = get_blk_size(Tx.size());
Expand Down Expand Up @@ -256,7 +256,7 @@ namespace ttcr {
std::vector<std::vector<T1>>& traveltimes,
std::vector<std::vector<std::vector<sxyz<T1>>>>& r_data) const {

if ( Tx.size() == 0 ) {
if ( Tx.size() == 1 ) {
this->raytrace(Tx[0], t0[0], Rx[0], traveltimes[0], r_data[0], 0);
} else {
std::vector<size_t> blk_size = get_blk_size(Tx.size());
Expand Down Expand Up @@ -287,7 +287,7 @@ namespace ttcr {
std::vector<std::vector<T1>>& traveltimes,
std::vector<std::vector<std::vector<sijv<T1>>>>& m_data) const {

if ( Tx.size() == 0 ) {
if ( Tx.size() == 1 ) {
this->raytrace(Tx[0], t0[0], Rx[0], traveltimes[0], m_data[0], 0);
} else {
std::vector<size_t> blk_size = get_blk_size(Tx.size());
Expand Down Expand Up @@ -319,7 +319,7 @@ namespace ttcr {
std::vector<std::vector<std::vector<sxyz<T1>>>>& r_data,
std::vector<std::vector<std::vector<sijv<T1>>>>& m_data) const {

if ( Tx.size() == 0 ) {
if ( Tx.size() == 1 ) {
this->raytrace(Tx[0], t0[0], Rx[0], traveltimes[0], r_data[0], m_data[0], 0);
} else {
std::vector<size_t> blk_size = get_blk_size(Tx.size());
Expand Down Expand Up @@ -350,7 +350,7 @@ namespace ttcr {
std::vector<std::vector<T1>>& traveltimes,
std::vector<std::vector<std::vector<siv<T1>>>>& l_data) const {

if ( Tx.size() == 0 ) {
if ( Tx.size() == 1 ) {
this->raytrace(Tx[0], t0[0], Rx[0], traveltimes[0], l_data[0], 0);
} else {
std::vector<size_t> blk_size = get_blk_size(Tx.size());
Expand Down Expand Up @@ -382,7 +382,7 @@ namespace ttcr {
std::vector<std::vector<std::vector<sxyz<T1>>>>& r_data,
std::vector<std::vector<std::vector<siv<T1>>>>& l_data) const {

if ( Tx.size() == 0 ) {
if ( Tx.size() == 1 ) {
this->raytrace(Tx[0], t0[0], Rx[0], traveltimes[0], r_data[0], l_data[0], 0);
} else {
std::vector<size_t> blk_size = get_blk_size(Tx.size());
Expand Down

0 comments on commit 40f084b

Please sign in to comment.