Main Lemma Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* This file is part of Lemma, a geophysical modelling and inversion API.
  2. * More information is available at http://lemmasoftware.org
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. /**
  9. * @file
  10. * @date 10/25/2018 12:41:37 PM
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email Trevor.Irons@utah.edu
  14. * @copyright Copyright (c) 2018, University of Utah
  15. * @copyright Copyright (c) 2018, Lemma Software, LLC
  16. */
  17. #include "FDEM1D"
  18. using namespace Lemma;
  19. int main() {
  20. auto dip = DipoleSource::NewSP();
  21. dip->SetLocation( Vector3r(1.,2.,3.) );
  22. std::cout << "Dipole 1: " << dip << "\n" << *dip << std::endl;
  23. auto dip2 = dip->Clone(); // literal copy of pointer
  24. dip2->SetLocation( Vector3r(1.,2.,3.) );
  25. std::cout << "Dipole 2: " << dip2 << "\n" << *dip2 << std::endl;
  26. // if (*dip == *dip2) {
  27. // std::cout << "equal" << std::endl;
  28. // } else {
  29. // std::cout << "not equal" << std::endl;
  30. // }
  31. }