diff --git a/Dockerfile b/Dockerfile index 6411b79..c87e12b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ # ===== 第一阶段:构建阶段 ===== FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +# 配置 apt-get 使用 apt-cacher-ng 作为代理 +RUN echo 'Acquire::http::Proxy "http://192.168.1.140:3142";' > /etc/apt/apt.conf.d/01proxy + # 创建并配置 Debian 镜像源 RUN echo "deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \ echo "deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ diff --git a/Services/FortranInteropService.cs b/Services/FortranInteropService.cs index f239995..2b2856c 100644 --- a/Services/FortranInteropService.cs +++ b/Services/FortranInteropService.cs @@ -43,7 +43,7 @@ namespace FortranWebApi.Services float[] UH, ref float DT, float[] P, - [MarshalAs(UnmanagedType.LPArray, SizeConst = 0)] float[,] EP, + float[] EP, float[] W, ref float FR, ref float S, @@ -91,7 +91,7 @@ namespace FortranWebApi.Services float[] UH = GetFloatArrayParameter(parameters, "UH"); float DT = GetFloatParameter(parameters, "DT"); float[] P = GetFloatArrayParameter(parameters, "P"); - float[,] EP = GetFloatParameter(parameters, "EP"); + float[] EP = GetFloatArrayParameter(parameters, "EP"); float[] W = GetFloatArrayParameter(parameters, "W"); float FR = GetFloatParameter(parameters, "FR"); float S = GetFloatParameter(parameters, "S"); @@ -121,7 +121,7 @@ namespace FortranWebApi.Services UH, ref DT, P, - ref EP, + EP, W, ref FR, ref S,