Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NorbertHofbauer committed Dec 14, 2024
1 parent 062eeb0 commit 1bd52b5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,5 @@
2024-12-09 working on trajectory bugs, amplidudes core speed up for trajectory preparation
2024-12-12 fixing history bug on windows need to wait for new dev release
2024-12-13 working on physical constants, damping, film, radiation
2024-12-14 writing check list. try to fix history bug on windows

28 changes: 28 additions & 0 deletions checklist_keyword_implementation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
this is an unfinished list as to where changes must happen when a new keyword gets included.

• core object
• new commands
• register in command plugin
• in calculixcore:
- implement object new coreobject
- init
- update
- reset
- print
- read and save cub5
- autocleanup
- highlight
- parser
- export data for inp
- export data for gui
• add to custom line -> core, command
• add to step if necessary -> core, command
• add to draw if necessary -> core, command
• include in export command
• create gui
- tree
- right click menu
- highlight
- navigation
- panel widgets

3 changes: 3 additions & 0 deletions src/GUI/Highlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ void Highlight::ModelTreeItemClicked(QTreeWidgetItem* item, int column)
} else if (StepsLoadsGravityTreeItem = dynamic_cast<StepsLoadsGravityTree*>(item->parent()))
{
entities = ccx_iface->get_entities("loadsgravity",std::stoi(item->text(1).toStdString()));
} else if (StepsLoadsCentrifugalTreeItem = dynamic_cast<StepsLoadsCentrifugalTree*>(item->parent()))
{
entities = ccx_iface->get_entities("loadscentrifugal",std::stoi(item->text(1).toStdString()));
} else if (StepsLoadsTrajectoryTreeItem = dynamic_cast<StepsLoadsTrajectoryTree*>(item->parent()))
{
entities = ccx_iface->get_entities("loadstrajectory",std::stoi(item->text(1).toStdString()));
Expand Down
2 changes: 1 addition & 1 deletion src/GUI/JobsMonitorDAT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void JobsMonitorDAT::update_result()
std::sort(elements.begin(),elements.end());
elements.erase(std::unique(elements.begin(), elements.end()), elements.end());
std::vector<double> tmp_element = ccx_iface->dat_get_element_values_for_component(current_job_id,elements[0],times[0],str_current_result_block,str_current_result_set,components[0]);
ipc = tmp_element.size(); // number of integration points
ipc = int(tmp_element.size()); // number of integration points

start = this->current_page * items_per_page;
end = start + this->items_per_page - 1;
Expand Down

0 comments on commit 1bd52b5

Please sign in to comment.