Skip to content

Commit ec9601a

Browse files
author
andy
committed
Merge origin/main into wip/118-builtin-basis
2 parents 96af2ae + 17eb192 commit ec9601a

11 files changed

Lines changed: 3910 additions & 15 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ submits each job over ssh.
6767

6868
Click any image for the full-size version.
6969

70-
<a href="docs/images/organizer.png"><img src="docs/images/organizer.png" width="300" alt="The Organizer, with a calculation being set up and launched"></a>
70+
<a href="docs/images/organizer.png"><img src="docs/images/organizer.png" width="300" alt="The Organizer, with a completed ORCA calculation selected"></a>
7171

72-
*The Organizer is the front door: calculations on the left, a summary of
73-
the selected one in the middle, and the code's own editor and the
74-
launcher opened from it — here an ORCA job on its way to a machine.*
72+
*The Organizer is the front door: projects and calculations on the left,
73+
each with a run-state icon, and a summary of the selected one in the
74+
middle, with buttons for its editor, builder, basis set tool, launcher
75+
and viewer — here a completed ORCA calculation on benzene.*
7576

7677
<a href="docs/images/viewer.png"><img src="docs/images/viewer.png" width="300" alt="The viewer, showing a molecular orbital of benzene"></a>
7778

‎docs/images/esp-benzene.png‎

-67.7 KB
Loading

‎docs/images/mo-diagram-water.png‎

-8.36 KB
Loading

‎docs/images/orbital-benzene.png‎

-135 KB
Loading

‎docs/images/organizer.png‎

-227 KB
Loading

‎docs/images/vectors-water.png‎

-13 KB
Loading

‎docs/images/viewer.png‎

-43.6 KB
Loading

‎src/apps/builder/Builder.C‎

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5107,17 +5107,29 @@ void Builder::updatePropertyMenus()
51075107
// The Builder's own canvas is as large as the pane layout leaves it
51085108
// (181 px wide in the headless layout), so draw in a second viewer of
51095109
// fixed size on the same scene graph.
5110-
wxFrame *frame = new wxFrame(NULL, wxID_ANY, "scene capture");
5111-
SGViewer *viewer = new SGViewer(frame, wxID_ANY);
5112-
viewer->setText("", "", "", "");
5113-
viewer->setSceneGraph(p_sgMgr);
5114-
viewer->setViewing(false);
5115-
viewer->setDecoration(false);
5116-
wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
5117-
viewer->SetMinSize(wxSize(480, 480));
5118-
sizer->Add(viewer, 1, wxEXPAND);
5119-
frame->SetSizerAndFit(sizer);
5120-
frame->Show(true);
5110+
// ECCE_VIEWER_SCENE_SIZE=<w>x<h> sizes the capture canvas.
5111+
// ECCE_VIEWER_SCENE_HOLD=<seconds> instead draws in the Builder's
5112+
// own canvas and keeps the window open that long, so the whole
5113+
// window can be photographed with the scene on screen
5114+
// (tools/screenshots/readme.py).
5115+
const char *hold = getenv("ECCE_VIEWER_SCENE_HOLD");
5116+
int capW = 480, capH = 480;
5117+
if (const char *sz = getenv("ECCE_VIEWER_SCENE_SIZE"))
5118+
sscanf(sz, "%dx%d", &capW, &capH);
5119+
SGViewer *viewer = p_viewer;
5120+
if (!hold) {
5121+
wxFrame *frame = new wxFrame(NULL, wxID_ANY, "scene capture");
5122+
viewer = new SGViewer(frame, wxID_ANY);
5123+
viewer->setText("", "", "", "");
5124+
viewer->setSceneGraph(p_sgMgr);
5125+
viewer->setViewing(false);
5126+
viewer->setDecoration(false);
5127+
wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
5128+
viewer->SetMinSize(wxSize(capW, capH));
5129+
sizer->Add(viewer, 1, wxEXPAND);
5130+
frame->SetSizerAndFit(sizer);
5131+
frame->Show(true);
5132+
}
51215133
for (int i = 0; i < 30; i++) { wxTheApp->Yield(true); wxMilliSleep(10); }
51225134
viewer->viewAll();
51235135
SceneScript run(viewer, sg, p_calculation, outdir);
@@ -5193,6 +5205,12 @@ void Builder::updatePropertyMenus()
51935205
fprintf(stderr, "ECCE_VIEWER_SCENE: %s\n", msg.c_str());
51945206
std::ofstream(outdir + "/FAILED") << msg << "\n";
51955207
}
5208+
if (hold) {
5209+
wxTimer *closer = new wxTimer(); // lives until the process exits
5210+
closer->Bind(wxEVT_TIMER, [this](wxTimerEvent&) { Close(true); });
5211+
closer->StartOnce(1000 * atoi(hold));
5212+
return;
5213+
}
51965214
Close(true);
51975215
});
51985216
timer->Start(500);

‎tools/screenshots/data/benzene.inp‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
! RHF def2-SVP UseSym
2+
%output
3+
Print[P_MOs] 1
4+
Print[P_OrbEn] 2
5+
end
6+
* xyz 0 1
7+
C 1.397000 0.000000 0.000000
8+
C 0.698500 1.209837 0.000000
9+
C -0.698500 1.209837 0.000000
10+
C -1.397000 0.000000 0.000000
11+
C -0.698500 -1.209837 0.000000
12+
C 0.698500 -1.209837 0.000000
13+
H 2.484000 0.000000 0.000000
14+
H 1.242000 2.151207 0.000000
15+
H -1.242000 2.151207 0.000000
16+
H -2.484000 0.000000 0.000000
17+
H -1.242000 -2.151207 0.000000
18+
H 1.242000 -2.151207 0.000000
19+
*

‎tools/screenshots/data/benzene.out‎

Lines changed: 3477 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)