@@ -186,7 +186,7 @@ SimulationParameters load_simulation_params(const nlohmann::json& config) {
186186 sim_params.output_mean_only = sim_config.value (" output_mean_only" , false );
187187 sim_params.output_derivative = sim_config.value (" output_derivative" , false );
188188 sim_params.output_all_cycles = sim_config.value (" output_all_cycles" , false );
189- sim_params.sim_cardiac_period = sim_config.value (" cardiac_period" , 0 .0 );
189+ sim_params.sim_cardiac_period = sim_config.value (" cardiac_period" , - 1 .0 );
190190 DEBUG_MSG (" Finished loading simulation parameters" );
191191 return sim_params;
192192}
@@ -402,20 +402,18 @@ void create_external_coupling(
402402 connections.push_back ({coupling_name, connected_block});
403403 } else if (coupling_loc == " outlet" ) {
404404 std::vector<std::string> possible_types = {
405- " ClosedLoopRCR" , " ClosedLoopHeartAndPulmonary" , " BloodVessel" ,
406- " BloodVesselCRL" , " BloodVessel" };
405+ " ClosedLoopRCR" , " ClosedLoopHeartAndPulmonary" , " BloodVessel" };
407406 if (std::find (std::begin (possible_types), std::end (possible_types),
408407 connected_type) == std::end (possible_types)) {
409408 throw std::runtime_error (
410409 " Error: The specified connection type for outlet "
411410 " external_coupling_block is invalid." );
412411 }
413- // Add connection only for closedLoopRCR and BloodVessel
414- // Connection to ClosedLoopHeartAndPulmonary will be
415- // handled in ClosedLoopHeartAndPulmonary creation.
412+ // Add connection only for closedLoopRCR and BloodVessel. Connection to
413+ // ClosedLoopHeartAndPulmonary will be handled in
414+ // ClosedLoopHeartAndPulmonary creation.
416415 if ((connected_type == " ClosedLoopRCR" ) ||
417- (connected_type == " BloodVessel" ) ||
418- (connected_type == " BloodVesselA" )) {
416+ (connected_type == " BloodVessel" )) {
419417 connections.push_back ({connected_block, coupling_name});
420418 } // connected_type == "ClosedLoopRCR"
421419 } // coupling_loc
0 commit comments