123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
-
-
-
-
-
-
- #include <Merlin>
- using namespace Lemma;
-
-
- int main(int argc, char** argv) {
-
- if (argc<5) {
- std::cout << "./KernelV0-2 Kernel.yaml TxString RxString vtkoutput<true/false> \n";
- return(EXIT_FAILURE);
- }
-
- std::cout << "Using kernel paramaters: " << argv[1] << std::endl;
- auto Kern = KernelV0::DeSerialize( YAML::LoadFile(argv[1]) );
- std::cout << "Kernel DeSerialized successful" << std::endl;
-
- std::vector<std::string> tx = {std::string(argv[2])};
- std::vector<std::string> rx = {std::string(argv[3])};
-
- std::cout << "argv[4]\t" << argv[4] << std::endl;
- if( std::string(argv[4]) == "true" || std::string(argv[4]) == "True") {
- std::cout << "Using VTK, output files may be very large" << std::endl;
- Kern->CalculateK0( tx, rx, true );
- } else {
- std::cout << "not using VTK" << std::endl;
- Kern->CalculateK0( tx, rx, false );
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- std::ofstream out = std::ofstream(std::string("Tx-")+std::string(argv[2])+std::string("_Rx-")+std::string(argv[3])+std::string(".yaml"));
- out << *Kern;
- out.close();
-
- return EXIT_SUCCESS;
- }
-
|