2015-01-06 54 views
1

我已安裝NetCDF 4.3.2和NetCDF-Fortran 4.2。我想運行社區地球系統模型4.2。使用NetCDF時出錯:無效的維度ID或名稱

當我創建的情況下,建立的情況下,然後運行的情況下,我得到以下錯誤:

NetCDF: Invalid dimension ID or name *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000011971760 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000012a3c5d0 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000011870e20 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000011870e20 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000011971760 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x00000000129369d0 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x00000000129369d0 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000012a3c5d0 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000012ca7090 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000011a16890 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x000000001101a390 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000011e02f90 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x00000000123df2b0 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x00000000128e7d30 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000*** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000011db9ad0 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000012ca7090 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: corrupted double-linked list: 0x0000000012542e90 *** *** glibc detected *** /home/nitin/CESM/NEW_CASES/CaseX/exeroot/cesm.exe: malloc(): memory corruption: 0x0000000011e5dbb0 ***

到底是什麼毛病的NetCDF安裝?

回答

2

首先,不要使用CESM來測試你的netcdf安裝。使用'make check'。

然後,您提供的回溯非常清晰:您正在將垃圾傳遞給您的netcdf例程之一:可能傳遞了堆棧分配的變量?缺少命令行參數?如果您使用調試來構建CESM,則可以得到更好的答案:然後您可以找到哪個netcdf例程可以讓您適合。

+0

我用'make check'來測試安裝。很好。該錯誤是由於CESM代碼中的編譯器優化和特定的fortan文件。一旦我找到兼容的Fortran代碼,它就可以工作。謝謝。 –

相關問題