CARPET driver creates errors

时光总嘲笑我的痴心妄想 提交于 2020-06-27 04:34:21

问题


I am using Einstein toolkit on Windows via Cygwin.

When I use carpet driver, I have found errors because of HDF5 library.

I installed following packages;

curl,perl,subversion,git,gcc-{core,fortran,g++},make,patch,libjpeg-devel,openssl-devel,xgraph,vim.

It's working well with PUGH but CARPET is not working.
Kindly,tell me how I can fix it.

The errors:

/home/hp/cactus/configs/carpet/build/CarpetLib/limits.cc: 
  In function ‘void CarpetLib::set_system_limits()’: 
  /home/hp/cactus/configs/carpet/build/CarpetLib/limits.cc:27:13: 
  error: ‘RLIMIT_RSS’ was not declared in this scope set_limit(RLIMIT_RSS, "resident set size", max_memory_size_MB); 
 /home/hp/cactus/configs/carpet/build/CarpetLib/limits.cc:27:13: 
 note: suggested alternative: ‘RLIMIT_AS’ set_limit(RLIMIT_RSS, "resident set size", max_memory_size_MB); 

Running configuration script for thorn MPI: 
  MPI selected, but MPI_DIR is not set. 
Computing settings... Found MPI compiler wrapper at /usr/bin/mpic++! Successfully configured MPI. 
Finished running configuration script for thorn MPI.

make[3]: *** [/home/hp/cactus/configs/carpet/config-data/make.config.rules:281: limits.cc.o] Error 1 
make[2]: *** [/home/hp/cactus/lib/make/make.thornlib:113: make.checked] Error 2 
make[1]: *** [/home/hp/cactus/lib/make/make.configuration:179: /home/hp/cactus/configs/carpet/lib/libthorn_CarpetLib.a] Error 2 
make: *** [Makefile:263: carpet] Error 2

回答1:


This was reported in 2013:

The warnings that are reported are harmless, since the content of the file does not matter -- what only matters is that there is at least one file generated when the self-test succeeds.

In general, scheduling a routine into a non-existing schedule bin means that this routine is not executed.
In many cases, this is just the right thing to do. In other cases, this is e.g. due to an error in schedule.ccl, which is why we moved from "silently not scheduling" to reporting warnings about these.
In this case, the warnings are harmless and no need to worry, since the thorns Boundary and SymBase are not actually required by CartGrid3D. One wishes there was a way to indicate this in the schedule.ccl so that these warnings could be omitted.

Regarding the use of CARPET, et the errors related to HDF5, here are all the current issues for the component CARPET with HDF5 in its description

A similar error was seen in this thread.
It illustrates that the error messages before the make/Error lines could help knowing what is going on.



来源:https://stackoverflow.com/questions/60107405/carpet-driver-creates-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!