From 12b8c23d5759292ec6cbc737ca12995a3e08eb39 Mon Sep 17 00:00:00 2001
From: loikki <loic.hausammann@protonmail.ch>
Date: Wed, 18 Nov 2020 17:33:29 +0100
Subject: [PATCH] Update zoom in and add comment to error message

---
 examples/GEAR/ZoomIn/README       |    5 +-
 examples/GEAR/ZoomIn/snaplist.txt | 1012 +++++++++++++++++++++++++++++
 examples/GEAR/ZoomIn/zoom_in.yml  |   12 +-
 src/space_extras.c                |   15 +-
 4 files changed, 1030 insertions(+), 14 deletions(-)
 create mode 100644 examples/GEAR/ZoomIn/snaplist.txt

diff --git a/examples/GEAR/ZoomIn/README b/examples/GEAR/ZoomIn/README
index cffc275f2a..b41ebabb38 100644
--- a/examples/GEAR/ZoomIn/README
+++ b/examples/GEAR/ZoomIn/README
@@ -6,11 +6,10 @@ The cosmology is taken from Planck 2015.
 
 The initial conditions have been cleaned to contain only the required
 fields. The ICs have been created for Gadget and the positions and box
-size are hence expressed in h-full units (e.g. box size of 32 / h Mpc).
+size are hence expressed in h-full units (e.g. box size of 3.4 / h Mpc).
 Similarly, the peculiar velocitites contain an extra sqrt(a) factor. 
 
-We will use SWIFT to cancel the h- and a-factors from the ICs. Gas
-particles will be generated at startup.
+We will use SWIFT to cancel the h- and a-factors from the ICs.
 
 MD5 check-sum of the ICS: 
 9aafe154438478ed435e88664c1c5dba zoom_in.hdf5
diff --git a/examples/GEAR/ZoomIn/snaplist.txt b/examples/GEAR/ZoomIn/snaplist.txt
new file mode 100644
index 0000000000..a14ce39871
--- /dev/null
+++ b/examples/GEAR/ZoomIn/snaplist.txt
@@ -0,0 +1,1012 @@
+# Scale Factor
+0.0141
+0.0146484375
+0.0156250000
+0.0166015625
+0.0175781250
+0.0185546875
+0.0195312500
+0.0205078125
+0.0214843750
+0.0224609375
+0.0234375000
+0.0244140625
+0.0253906250
+0.0263671875
+0.0273437500
+0.0283203125
+0.0292968750
+0.0302734375
+0.0312500000
+0.0322265625
+0.0332031250
+0.0341796875
+0.0351562500
+0.0361328125
+0.0371093750
+0.0380859375
+0.0390625000
+0.0400390625
+0.0410156250
+0.0419921875
+0.0429687500
+0.0439453125
+0.0449218750
+0.0458984375
+0.0468750000
+0.0478515625
+0.0488281250
+0.0498046875
+0.0507812500
+0.0517578125
+0.0527343750
+0.0537109375
+0.0546875000
+0.0556640625
+0.0566406250
+0.0576171875
+0.0585937500
+0.0595703125
+0.0605468750
+0.0615234375
+0.0625000000
+0.0634765625
+0.0644531250
+0.0654296875
+0.0664062500
+0.0673828125
+0.0683593750
+0.0693359375
+0.0703125000
+0.0712890625
+0.0722656250
+0.0732421875
+0.0742187500
+0.0751953125
+0.0761718750
+0.0771484375
+0.0781250000
+0.0791015625
+0.0800781250
+0.0810546875
+0.0820312500
+0.0830078125
+0.0839843750
+0.0849609375
+0.0859375000
+0.0869140625
+0.0878906250
+0.0888671875
+0.0898437500
+0.0908203125
+0.0917968750
+0.0927734375
+0.0937500000
+0.0947265625
+0.0957031250
+0.0966796875
+0.0976562500
+0.0986328125
+0.0996093750
+0.1005859375
+0.1015625000
+0.1025390625
+0.1035156250
+0.1044921875
+0.1054687500
+0.1064453125
+0.1074218750
+0.1083984375
+0.1093750000
+0.1103515625
+0.1113281250
+0.1123046875
+0.1132812500
+0.1142578125
+0.1152343750
+0.1162109375
+0.1171875000
+0.1181640625
+0.1191406250
+0.1201171875
+0.1210937500
+0.1220703125
+0.1230468750
+0.1240234375
+0.1250000000
+0.1259765625
+0.1269531250
+0.1279296875
+0.1289062500
+0.1298828125
+0.1308593750
+0.1318359375
+0.1328125000
+0.1337890625
+0.1347656250
+0.1357421875
+0.1367187500
+0.1376953125
+0.1386718750
+0.1396484375
+0.1406250000
+0.1416015625
+0.1425781250
+0.1435546875
+0.1445312500
+0.1455078125
+0.1464843750
+0.1474609375
+0.1484375000
+0.1494140625
+0.1503906250
+0.1513671875
+0.1523437500
+0.1533203125
+0.1542968750
+0.1552734375
+0.1562500000
+0.1572265625
+0.1582031250
+0.1591796875
+0.1601562500
+0.1611328125
+0.1621093750
+0.1630859375
+0.1640625000
+0.1650390625
+0.1660156250
+0.1669921875
+0.1679687500
+0.1689453125
+0.1699218750
+0.1708984375
+0.1718750000
+0.1728515625
+0.1738281250
+0.1748046875
+0.1757812500
+0.1767578125
+0.1777343750
+0.1787109375
+0.1796875000
+0.1806640625
+0.1816406250
+0.1826171875
+0.1835937500
+0.1845703125
+0.1855468750
+0.1865234375
+0.1875000000
+0.1884765625
+0.1894531250
+0.1904296875
+0.1914062500
+0.1923828125
+0.1933593750
+0.1943359375
+0.1953125000
+0.1962890625
+0.1972656250
+0.1982421875
+0.1992187500
+0.2001953125
+0.2011718750
+0.2021484375
+0.2031250000
+0.2041015625
+0.2050781250
+0.2060546875
+0.2070312500
+0.2080078125
+0.2089843750
+0.2099609375
+0.2109375000
+0.2119140625
+0.2128906250
+0.2138671875
+0.2148437500
+0.2158203125
+0.2167968750
+0.2177734375
+0.2187500000
+0.2197265625
+0.2207031250
+0.2216796875
+0.2226562500
+0.2236328125
+0.2246093750
+0.2255859375
+0.2265625000
+0.2275390625
+0.2285156250
+0.2294921875
+0.2304687500
+0.2314453125
+0.2324218750
+0.2333984375
+0.2343750000
+0.2353515625
+0.2363281250
+0.2373046875
+0.2382812500
+0.2392578125
+0.2402343750
+0.2412109375
+0.2421875000
+0.2431640625
+0.2441406250
+0.2451171875
+0.2460937500
+0.2470703125
+0.2480468750
+0.2490234375
+0.2500000000
+0.2509765625
+0.2519531250
+0.2529296875
+0.2539062500
+0.2548828125
+0.2558593750
+0.2568359375
+0.2578125000
+0.2587890625
+0.2597656250
+0.2607421875
+0.2617187500
+0.2626953125
+0.2636718750
+0.2646484375
+0.2656250000
+0.2666015625
+0.2675781250
+0.2685546875
+0.2695312500
+0.2705078125
+0.2714843750
+0.2724609375
+0.2734375000
+0.2744140625
+0.2753906250
+0.2763671875
+0.2773437500
+0.2783203125
+0.2792968750
+0.2802734375
+0.2812500000
+0.2822265625
+0.2832031250
+0.2841796875
+0.2851562500
+0.2861328125
+0.2871093750
+0.2880859375
+0.2890625000
+0.2900390625
+0.2910156250
+0.2919921875
+0.2929687500
+0.2939453125
+0.2949218750
+0.2958984375
+0.2968750000
+0.2978515625
+0.2988281250
+0.2998046875
+0.3007812500
+0.3017578125
+0.3027343750
+0.3037109375
+0.3046875000
+0.3056640625
+0.3066406250
+0.3076171875
+0.3085937500
+0.3095703125
+0.3105468750
+0.3115234375
+0.3125000000
+0.3134765625
+0.3144531250
+0.3154296875
+0.3164062500
+0.3173828125
+0.3183593750
+0.3193359375
+0.3203125000
+0.3212890625
+0.3222656250
+0.3232421875
+0.3242187500
+0.3251953125
+0.3261718750
+0.3271484375
+0.3281250000
+0.3291015625
+0.3300781250
+0.3310546875
+0.3320312500
+0.3330078125
+0.3339843750
+0.3349609375
+0.3359375000
+0.3369140625
+0.3378906250
+0.3388671875
+0.3398437500
+0.3408203125
+0.3417968750
+0.3427734375
+0.3437500000
+0.3447265625
+0.3457031250
+0.3466796875
+0.3476562500
+0.3486328125
+0.3496093750
+0.3505859375
+0.3515625000
+0.3525390625
+0.3535156250
+0.3544921875
+0.3554687500
+0.3564453125
+0.3574218750
+0.3583984375
+0.3593750000
+0.3603515625
+0.3613281250
+0.3623046875
+0.3632812500
+0.3642578125
+0.3652343750
+0.3662109375
+0.3671875000
+0.3681640625
+0.3691406250
+0.3701171875
+0.3710937500
+0.3720703125
+0.3730468750
+0.3740234375
+0.3750000000
+0.3759765625
+0.3769531250
+0.3779296875
+0.3789062500
+0.3798828125
+0.3808593750
+0.3818359375
+0.3828125000
+0.3837890625
+0.3847656250
+0.3857421875
+0.3867187500
+0.3876953125
+0.3886718750
+0.3896484375
+0.3906250000
+0.3916015625
+0.3925781250
+0.3935546875
+0.3945312500
+0.3955078125
+0.3964843750
+0.3974609375
+0.3984375000
+0.3994140625
+0.4003906250
+0.4013671875
+0.4023437500
+0.4033203125
+0.4042968750
+0.4052734375
+0.4062500000
+0.4072265625
+0.4082031250
+0.4091796875
+0.4101562500
+0.4111328125
+0.4121093750
+0.4130859375
+0.4140625000
+0.4150390625
+0.4160156250
+0.4169921875
+0.4179687500
+0.4189453125
+0.4199218750
+0.4208984375
+0.4218750000
+0.4228515625
+0.4238281250
+0.4248046875
+0.4257812500
+0.4267578125
+0.4277343750
+0.4287109375
+0.4296875000
+0.4306640625
+0.4316406250
+0.4326171875
+0.4335937500
+0.4345703125
+0.4355468750
+0.4365234375
+0.4375000000
+0.4384765625
+0.4394531250
+0.4404296875
+0.4414062500
+0.4423828125
+0.4433593750
+0.4443359375
+0.4453125000
+0.4462890625
+0.4472656250
+0.4482421875
+0.4492187500
+0.4501953125
+0.4511718750
+0.4521484375
+0.4531250000
+0.4541015625
+0.4550781250
+0.4560546875
+0.4570312500
+0.4580078125
+0.4589843750
+0.4599609375
+0.4609375000
+0.4619140625
+0.4628906250
+0.4638671875
+0.4648437500
+0.4658203125
+0.4667968750
+0.4677734375
+0.4687500000
+0.4697265625
+0.4707031250
+0.4716796875
+0.4726562500
+0.4736328125
+0.4746093750
+0.4755859375
+0.4765625000
+0.4775390625
+0.4785156250
+0.4794921875
+0.4804687500
+0.4814453125
+0.4824218750
+0.4833984375
+0.4843750000
+0.4853515625
+0.4863281250
+0.4873046875
+0.4882812500
+0.4892578125
+0.4902343750
+0.4912109375
+0.4921875000
+0.4931640625
+0.4941406250
+0.4951171875
+0.4960937500
+0.4970703125
+0.4980468750
+0.4990234375
+0.5000000000
+0.5009765625
+0.5019531250
+0.5029296875
+0.5039062500
+0.5048828125
+0.5058593750
+0.5068359375
+0.5078125000
+0.5087890625
+0.5097656250
+0.5107421875
+0.5117187500
+0.5126953125
+0.5136718750
+0.5146484375
+0.5156250000
+0.5166015625
+0.5175781250
+0.5185546875
+0.5195312500
+0.5205078125
+0.5214843750
+0.5224609375
+0.5234375000
+0.5244140625
+0.5253906250
+0.5263671875
+0.5273437500
+0.5283203125
+0.5292968750
+0.5302734375
+0.5312500000
+0.5322265625
+0.5332031250
+0.5341796875
+0.5351562500
+0.5361328125
+0.5371093750
+0.5380859375
+0.5390625000
+0.5400390625
+0.5410156250
+0.5419921875
+0.5429687500
+0.5439453125
+0.5449218750
+0.5458984375
+0.5468750000
+0.5478515625
+0.5488281250
+0.5498046875
+0.5507812500
+0.5517578125
+0.5527343750
+0.5537109375
+0.5546875000
+0.5556640625
+0.5566406250
+0.5576171875
+0.5585937500
+0.5595703125
+0.5605468750
+0.5615234375
+0.5625000000
+0.5634765625
+0.5644531250
+0.5654296875
+0.5664062500
+0.5673828125
+0.5683593750
+0.5693359375
+0.5703125000
+0.5712890625
+0.5722656250
+0.5732421875
+0.5742187500
+0.5751953125
+0.5761718750
+0.5771484375
+0.5781250000
+0.5791015625
+0.5800781250
+0.5810546875
+0.5820312500
+0.5830078125
+0.5839843750
+0.5849609375
+0.5859375000
+0.5869140625
+0.5878906250
+0.5888671875
+0.5898437500
+0.5908203125
+0.5917968750
+0.5927734375
+0.5937500000
+0.5947265625
+0.5957031250
+0.5966796875
+0.5976562500
+0.5986328125
+0.5996093750
+0.6005859375
+0.6015625000
+0.6025390625
+0.6035156250
+0.6044921875
+0.6054687500
+0.6064453125
+0.6074218750
+0.6083984375
+0.6093750000
+0.6103515625
+0.6113281250
+0.6123046875
+0.6132812500
+0.6142578125
+0.6152343750
+0.6162109375
+0.6171875000
+0.6181640625
+0.6191406250
+0.6201171875
+0.6210937500
+0.6220703125
+0.6230468750
+0.6240234375
+0.6250000000
+0.6259765625
+0.6269531250
+0.6279296875
+0.6289062500
+0.6298828125
+0.6308593750
+0.6318359375
+0.6328125000
+0.6337890625
+0.6347656250
+0.6357421875
+0.6367187500
+0.6376953125
+0.6386718750
+0.6396484375
+0.6406250000
+0.6416015625
+0.6425781250
+0.6435546875
+0.6445312500
+0.6455078125
+0.6464843750
+0.6474609375
+0.6484375000
+0.6494140625
+0.6503906250
+0.6513671875
+0.6523437500
+0.6533203125
+0.6542968750
+0.6552734375
+0.6562500000
+0.6572265625
+0.6582031250
+0.6591796875
+0.6601562500
+0.6611328125
+0.6621093750
+0.6630859375
+0.6640625000
+0.6650390625
+0.6660156250
+0.6669921875
+0.6679687500
+0.6689453125
+0.6699218750
+0.6708984375
+0.6718750000
+0.6728515625
+0.6738281250
+0.6748046875
+0.6757812500
+0.6767578125
+0.6777343750
+0.6787109375
+0.6796875000
+0.6806640625
+0.6816406250
+0.6826171875
+0.6835937500
+0.6845703125
+0.6855468750
+0.6865234375
+0.6875000000
+0.6884765625
+0.6894531250
+0.6904296875
+0.6914062500
+0.6923828125
+0.6933593750
+0.6943359375
+0.6953125000
+0.6962890625
+0.6972656250
+0.6982421875
+0.6992187500
+0.7001953125
+0.7011718750
+0.7021484375
+0.7031250000
+0.7041015625
+0.7050781250
+0.7060546875
+0.7070312500
+0.7080078125
+0.7089843750
+0.7099609375
+0.7109375000
+0.7119140625
+0.7128906250
+0.7138671875
+0.7148437500
+0.7158203125
+0.7167968750
+0.7177734375
+0.7187500000
+0.7197265625
+0.7207031250
+0.7216796875
+0.7226562500
+0.7236328125
+0.7246093750
+0.7255859375
+0.7265625000
+0.7275390625
+0.7285156250
+0.7294921875
+0.7304687500
+0.7314453125
+0.7324218750
+0.7333984375
+0.7343750000
+0.7353515625
+0.7363281250
+0.7373046875
+0.7382812500
+0.7392578125
+0.7402343750
+0.7412109375
+0.7421875000
+0.7431640625
+0.7441406250
+0.7451171875
+0.7460937500
+0.7470703125
+0.7480468750
+0.7490234375
+0.7500000000
+0.7509765625
+0.7519531250
+0.7529296875
+0.7539062500
+0.7548828125
+0.7558593750
+0.7568359375
+0.7578125000
+0.7587890625
+0.7597656250
+0.7607421875
+0.7617187500
+0.7626953125
+0.7636718750
+0.7646484375
+0.7656250000
+0.7666015625
+0.7675781250
+0.7685546875
+0.7695312500
+0.7705078125
+0.7714843750
+0.7724609375
+0.7734375000
+0.7744140625
+0.7753906250
+0.7763671875
+0.7773437500
+0.7783203125
+0.7792968750
+0.7802734375
+0.7812500000
+0.7822265625
+0.7832031250
+0.7841796875
+0.7851562500
+0.7861328125
+0.7871093750
+0.7880859375
+0.7890625000
+0.7900390625
+0.7910156250
+0.7919921875
+0.7929687500
+0.7939453125
+0.7949218750
+0.7958984375
+0.7968750000
+0.7978515625
+0.7988281250
+0.7998046875
+0.8007812500
+0.8017578125
+0.8027343750
+0.8037109375
+0.8046875000
+0.8056640625
+0.8066406250
+0.8076171875
+0.8085937500
+0.8095703125
+0.8105468750
+0.8115234375
+0.8125000000
+0.8134765625
+0.8144531250
+0.8154296875
+0.8164062500
+0.8173828125
+0.8183593750
+0.8193359375
+0.8203125000
+0.8212890625
+0.8222656250
+0.8232421875
+0.8242187500
+0.8251953125
+0.8261718750
+0.8271484375
+0.8281250000
+0.8291015625
+0.8300781250
+0.8310546875
+0.8320312500
+0.8330078125
+0.8339843750
+0.8349609375
+0.8359375000
+0.8369140625
+0.8378906250
+0.8388671875
+0.8398437500
+0.8408203125
+0.8417968750
+0.8427734375
+0.8437500000
+0.8447265625
+0.8457031250
+0.8466796875
+0.8476562500
+0.8486328125
+0.8496093750
+0.8505859375
+0.8515625000
+0.8525390625
+0.8535156250
+0.8544921875
+0.8554687500
+0.8564453125
+0.8574218750
+0.8583984375
+0.8593750000
+0.8603515625
+0.8613281250
+0.8623046875
+0.8632812500
+0.8642578125
+0.8652343750
+0.8662109375
+0.8671875000
+0.8681640625
+0.8691406250
+0.8701171875
+0.8710937500
+0.8720703125
+0.8730468750
+0.8740234375
+0.8750000000
+0.8759765625
+0.8769531250
+0.8779296875
+0.8789062500
+0.8798828125
+0.8808593750
+0.8818359375
+0.8828125000
+0.8837890625
+0.8847656250
+0.8857421875
+0.8867187500
+0.8876953125
+0.8886718750
+0.8896484375
+0.8906250000
+0.8916015625
+0.8925781250
+0.8935546875
+0.8945312500
+0.8955078125
+0.8964843750
+0.8974609375
+0.8984375000
+0.8994140625
+0.9003906250
+0.9013671875
+0.9023437500
+0.9033203125
+0.9042968750
+0.9052734375
+0.9062500000
+0.9072265625
+0.9082031250
+0.9091796875
+0.9101562500
+0.9111328125
+0.9121093750
+0.9130859375
+0.9140625000
+0.9150390625
+0.9160156250
+0.9169921875
+0.9179687500
+0.9189453125
+0.9199218750
+0.9208984375
+0.9218750000
+0.9228515625
+0.9238281250
+0.9248046875
+0.9257812500
+0.9267578125
+0.9277343750
+0.9287109375
+0.9296875000
+0.9306640625
+0.9316406250
+0.9326171875
+0.9335937500
+0.9345703125
+0.9355468750
+0.9365234375
+0.9375000000
+0.9384765625
+0.9394531250
+0.9404296875
+0.9414062500
+0.9423828125
+0.9433593750
+0.9443359375
+0.9453125000
+0.9462890625
+0.9472656250
+0.9482421875
+0.9492187500
+0.9501953125
+0.9511718750
+0.9521484375
+0.9531250000
+0.9541015625
+0.9550781250
+0.9560546875
+0.9570312500
+0.9580078125
+0.9589843750
+0.9599609375
+0.9609375000
+0.9619140625
+0.9628906250
+0.9638671875
+0.9648437500
+0.9658203125
+0.9667968750
+0.9677734375
+0.9687500000
+0.9697265625
+0.9707031250
+0.9716796875
+0.9726562500
+0.9736328125
+0.9746093750
+0.9755859375
+0.9765625000
+0.9775390625
+0.9785156250
+0.9794921875
+0.9804687500
+0.9814453125
+0.9824218750
+0.9833984375
+0.9843750000
+0.9853515625
+0.9863281250
+0.9873046875
+0.9882812500
+0.9892578125
+0.9902343750
+0.9912109375
+0.9921875000
+0.9931640625
+0.9941406250
+0.9951171875
+0.9960937500
+0.9970703125
+0.9980468750
+0.9990234375
+1.0000000000
diff --git a/examples/GEAR/ZoomIn/zoom_in.yml b/examples/GEAR/ZoomIn/zoom_in.yml
index d17e285b80..5dd2d508e3 100644
--- a/examples/GEAR/ZoomIn/zoom_in.yml
+++ b/examples/GEAR/ZoomIn/zoom_in.yml
@@ -1,7 +1,7 @@
 # Define the system of units to use internally. 
 InternalUnitSystem:
   UnitMass_in_cgs:     1.98841e43    # 10^10 M_sun in grams
-  UnitLength_in_cgs:   3.08567758e24 # Mpc in centimeters
+  UnitLength_in_cgs:   3.08567758e21 # kpc in centimeters
   UnitVelocity_in_cgs: 1e5           # km/s in centimeters per second
   UnitCurrent_in_cgs:  1             # Amperes
   UnitTemp_in_cgs:     1             # Kelvin
@@ -52,10 +52,10 @@ Gravity:
   MAC:                           geometric  # Choice of mulitpole acceptance criterion: 'adaptive' OR 'geometric'.
   epsilon_fmm:                   0.001     # Tolerance parameter for the adaptive multipole acceptance criterion.
   theta_cr:                      0.7       # Opening angle for the purely gemoetric criterion.
-  comoving_DM_softening:     0.1278 # Comoving softening length (in internal units).
-  max_physical_DM_softening: 0.03365    # Physical softening length (in internal units).
-  comoving_baryon_softening:     0.03365 # Comoving softening length (in internal units).
-  max_physical_baryon_softening: 0.00673    # Physical softening length (in internal units).
+  comoving_DM_softening:     0.2823 # Comoving softening length (in internal units).
+  max_physical_DM_softening: 0.07429    # Physical softening length (in internal units).
+  comoving_baryon_softening:     0.07429 # Comoving softening length (in internal units).
+  max_physical_baryon_softening: 0.01485    # Physical softening length (in internal units).
   softening_ratio_background:    0.0285714      # Fraction of the mean inter-particle separation to use as Plummer-equivalent softening for the background DM particles.
   mesh_side_length:       128        # Number of cells along each axis for the periodic gravity mesh.
   
@@ -101,7 +101,7 @@ GEARPressureFloor:
   jeans_factor: 10
 
 GEARFeedback:
-  supernovae_energy_erg: 0.135e51
+  supernovae_energy_erg: 0.1e51
   yields_table: chemistry-AGB+OMgSFeZnSrYBaEu-16072013.h5
   discrete_yields: 1
   yields_table_first_stars: chemistry-PopIII.hdf5          # Table containing the yields of the first stars.
diff --git a/src/space_extras.c b/src/space_extras.c
index 5eda872340..156596f716 100644
--- a/src/space_extras.c
+++ b/src/space_extras.c
@@ -117,15 +117,20 @@ void space_allocate_extras(struct space *s, int verbose) {
   }
 
   if (expected_num_extra_parts < s->nr_extra_parts)
-    error("Reduction in top-level cells number not handled.");
+    error("Reduction in top-level cells number not handled. "
+          "Please set a lower h_max or reduce the number of top level cells.");
   if (expected_num_extra_gparts < s->nr_extra_gparts)
-    error("Reduction in top-level cells number not handled.");
+    error("Reduction in top-level cells number not handled. "
+          "Please set a lower h_max or reduce the number of top level cells.");
   if (expected_num_extra_sparts < s->nr_extra_sparts)
-    error("Reduction in top-level cells number not handled.");
+    error("Reduction in top-level cells number not handled. "
+          "Please set a lower h_max or reduce the number of top level cells.");
   if (expected_num_extra_bparts < s->nr_extra_bparts)
-    error("Reduction in top-level cells number not handled.");
+    error("Reduction in top-level cells number not handled. "
+          "Please set a lower h_max or reduce the number of top level cells.");
   if (expected_num_extra_sinks < s->nr_extra_sinks)
-    error("Reduction in top-level cells number not handled.");
+    error("Reduction in top-level cells number not handled. "
+          "Please set a lower h_max or reduce the number of top level cells.");
 
   /* Do we have enough space for the extra gparts (i.e. we haven't used up any)
    * ? */
-- 
GitLab