Skip to content

Commit

Permalink
Merge branch 'FIMS-v0100-nll-refactor-2' of github.com:NOAA-FIMS/Modu…
Browse files Browse the repository at this point in the history
…larTMBExample into FIMS-v0100-nll-refactor-2
  • Loading branch information
Andrea-Havron-NOAA committed Apr 10, 2024
2 parents a16b126 + 7f1a9cf commit 62d289d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions inst/include/interface/rcpp/rcpp_objects/rcpp_interface_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ class RcppInterfaceBase {
continue;
}

std::cout << Rcpp::as<std::string>(l[i]) << "*******" << std::endl;

SEXP expression, result;
ParseStatus status;
Expand All @@ -124,24 +123,20 @@ class RcppInterfaceBase {
if (TYPEOF(result) == STRSXP) {
for (int j = 0; j < LENGTH(result); j++) {
std::string str(CHAR(STRING_ELT(result, j)));
std::cout << str << "\n\n\n";
std::cout<<"---->"<<this->get_module_name()<<std::endl;

std::cout<< "contains "<<contains(str, this->get_module_name())<<std::endl;

if (str == this->get_module_name()) {

std::string line(CHAR(STRING_ELT(result, j + 1)));
std::vector<std::string> tokens;
std::cout<<"line = "<<line<<std::endl;

Tokenize(line, tokens, ":");
std::cout<<"module id "<<this->module_id<<" == " <<StringToNumber<size_t> (tokens[1])<<std::endl;
if (StringToNumber<size_t> (tokens[1]) == this->module_id) {
this->r_name = Rcpp::as<std::string>(l[i]);
}
} else {
break;
}
std::cout << CHAR(STRING_ELT(result, j)) << std::endl;
// std::cout << CHAR(STRING_ELT(result, j)) << std::endl;
}

}
Expand Down

0 comments on commit 62d289d

Please sign in to comment.