Skip to content

Commit 094d3df

Browse files
committed
Fix zonal mean control data output in control file check
1 parent 2f71c31 commit 094d3df

File tree

5 files changed

+15
-127
lines changed

5 files changed

+15
-127
lines changed

src/Fortran_libraries/MHD_src/IO/t_control_data_dynamo_sects.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ subroutine write_single_sect_ctl &
227227
integer(kind = kint), intent(inout) :: level
228228
!
229229
!
230-
if(psf_ctls%num_psf_ctl .gt. 0) return
230+
if(psf_ctls%num_psf_ctl .le. 0) return
231231
call sel_write_control_4_psf_file(id_control, hd_section, &
232232
& psf_ctls%fname_psf_ctl(1), psf_ctls%psf_ctl_struct(1), level)
233233
!

src/Jupyter/.ipynb_checkpoints/Calypso_control_glossary-checkpoint.ipynb

Lines changed: 10 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@
384384
"cell_type": "markdown",
385385
"id": "20895d95-f3f2-48bd-9be4-995dc03ac98b",
386386
"metadata": {
387+
"jp-MarkdownHeadingCollapsed": true,
387388
"tags": []
388389
},
389390
"source": [
@@ -424,6 +425,7 @@
424425
"cell_type": "markdown",
425426
"id": "8a2c2e12-e529-4104-a3ac-128852bbd3f8",
426427
"metadata": {
428+
"jp-MarkdownHeadingCollapsed": true,
427429
"tags": []
428430
},
429431
"source": [
@@ -455,6 +457,7 @@
455457
"cell_type": "markdown",
456458
"id": "b5c583c0-c2c8-46c8-b95c-f286414cc552",
457459
"metadata": {
460+
"jp-MarkdownHeadingCollapsed": true,
458461
"tags": []
459462
},
460463
"source": [
@@ -484,7 +487,9 @@
484487
{
485488
"cell_type": "markdown",
486489
"id": "1870a03b-95f3-430a-8e7b-26e33809ccda",
487-
"metadata": {},
490+
"metadata": {
491+
"jp-MarkdownHeadingCollapsed": true
492+
},
488493
"source": [
489494
"##### List of fields with equatorial symmetry"
490495
]
@@ -518,6 +523,7 @@
518523
"cell_type": "markdown",
519524
"id": "bdc523c8-2a11-424d-83cf-24d41470e983",
520525
"metadata": {
526+
"jp-MarkdownHeadingCollapsed": true,
521527
"tags": []
522528
},
523529
"source": [
@@ -555,6 +561,7 @@
555561
"cell_type": "markdown",
556562
"id": "5451dc1f-4045-45d1-910e-042d251e5a19",
557563
"metadata": {
564+
"jp-MarkdownHeadingCollapsed": true,
558565
"tags": []
559566
},
560567
"source": [
@@ -736,7 +743,6 @@
736743
"cell_type": "markdown",
737744
"id": "5b661b94-2687-48b4-a832-ee77284c648d",
738745
"metadata": {
739-
"jp-MarkdownHeadingCollapsed": true,
740746
"tags": []
741747
},
742748
"source": [
@@ -767,68 +773,9 @@
767773
]
768774
},
769775
{
770-
"cell_type": "code",
771-
"execution_count": 28,
772-
"id": "511f8887-47b5-4ce6-99cc-d9b17702aa36",
776+
"cell_type": "markdown",
777+
"id": "bf6bddcf-9411-4452-a4c0-776929c93b60",
773778
"metadata": {},
774-
"outputs": [
775-
{
776-
"data": {
777-
"application/vnd.jupyter.widget-view+json": {
778-
"model_id": "7afb2ff8ea9645a1a94a34340e87d49d",
779-
"version_major": 2,
780-
"version_minor": 0
781-
},
782-
"text/plain": [
783-
"Output()"
784-
]
785-
},
786-
"metadata": {},
787-
"output_type": "display_data"
788-
},
789-
{
790-
"data": {
791-
"application/vnd.jupyter.widget-view+json": {
792-
"model_id": "54e1ddd5dc244a8f8e5d6f70fb668300",
793-
"version_major": 2,
794-
"version_minor": 0
795-
},
796-
"text/plain": [
797-
"Textarea(value=' array dimless_ctl 6\\n dimless_ctl Pr 1.0e-0\\n dimless_c…"
798-
]
799-
},
800-
"metadata": {},
801-
"output_type": "display_data"
802-
},
803-
{
804-
"data": {
805-
"application/vnd.jupyter.widget-view+json": {
806-
"model_id": "9fc2ec3ac06c4bb695187cadcea834e5",
807-
"version_major": 2,
808-
"version_minor": 0
809-
},
810-
"text/plain": [
811-
"Button(button_style='success', description='Update Equation', style=ButtonStyle())"
812-
]
813-
},
814-
"metadata": {},
815-
"output_type": "display_data"
816-
},
817-
{
818-
"data": {
819-
"application/vnd.jupyter.widget-view+json": {
820-
"model_id": "589ca33d43a0493aba6181f42b122ad7",
821-
"version_major": 2,
822-
"version_minor": 0
823-
},
824-
"text/plain": [
825-
"Output()"
826-
]
827-
},
828-
"metadata": {},
829-
"output_type": "display_data"
830-
}
831-
],
832779
"source": [
833780
"a = Dimless_ctl_Editor(ctl)"
834781
]

src/Jupyter/Calypso_control_glossary.ipynb

Lines changed: 2 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@
743743
"cell_type": "markdown",
744744
"id": "5b661b94-2687-48b4-a832-ee77284c648d",
745745
"metadata": {
746-
"jp-MarkdownHeadingCollapsed": true,
747746
"tags": []
748747
},
749748
"source": [
@@ -774,68 +773,9 @@
774773
]
775774
},
776775
{
777-
"cell_type": "code",
778-
"execution_count": 28,
779-
"id": "511f8887-47b5-4ce6-99cc-d9b17702aa36",
776+
"cell_type": "markdown",
777+
"id": "bf6bddcf-9411-4452-a4c0-776929c93b60",
780778
"metadata": {},
781-
"outputs": [
782-
{
783-
"data": {
784-
"application/vnd.jupyter.widget-view+json": {
785-
"model_id": "7afb2ff8ea9645a1a94a34340e87d49d",
786-
"version_major": 2,
787-
"version_minor": 0
788-
},
789-
"text/plain": [
790-
"Output()"
791-
]
792-
},
793-
"metadata": {},
794-
"output_type": "display_data"
795-
},
796-
{
797-
"data": {
798-
"application/vnd.jupyter.widget-view+json": {
799-
"model_id": "54e1ddd5dc244a8f8e5d6f70fb668300",
800-
"version_major": 2,
801-
"version_minor": 0
802-
},
803-
"text/plain": [
804-
"Textarea(value=' array dimless_ctl 6\\n dimless_ctl Pr 1.0e-0\\n dimless_c…"
805-
]
806-
},
807-
"metadata": {},
808-
"output_type": "display_data"
809-
},
810-
{
811-
"data": {
812-
"application/vnd.jupyter.widget-view+json": {
813-
"model_id": "9fc2ec3ac06c4bb695187cadcea834e5",
814-
"version_major": 2,
815-
"version_minor": 0
816-
},
817-
"text/plain": [
818-
"Button(button_style='success', description='Update Equation', style=ButtonStyle())"
819-
]
820-
},
821-
"metadata": {},
822-
"output_type": "display_data"
823-
},
824-
{
825-
"data": {
826-
"application/vnd.jupyter.widget-view+json": {
827-
"model_id": "589ca33d43a0493aba6181f42b122ad7",
828-
"version_major": 2,
829-
"version_minor": 0
830-
},
831-
"text/plain": [
832-
"Output()"
833-
]
834-
},
835-
"metadata": {},
836-
"output_type": "display_data"
837-
}
838-
],
839779
"source": [
840780
"a = Dimless_ctl_Editor(ctl)"
841781
]

tests/Control_file_check/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ all: test
1616

1717
test:
1818
make clean
19-
~/src_kemo/bin/utilities/check_control_mhd control_MHD > log.txt
19+
$(TARGET_CONTROL_MHD_CHECK) control_MHD > log.txt
2020
diff -w log.txt reference/control_checked.txt
2121
@echo 'Control file check test is succeessfully finished.'
2222

tests/Control_file_check/control_MHD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,3 +388,4 @@ begin MHD_control
388388
file zonal_mean_section_ctl 'controls/control_zonal_mean'
389389
end dynamo_vizs_control
390390
end MHD_control
391+

0 commit comments

Comments
 (0)