摘要: Win11:Win11 WSL2 安装+配置+迁移 - 知乎 (zhihu.com) Win10:https://cloud.tencent.com/developer/article/1594940 阅读全文
posted @ 2022-05-31 10:48 JayYin 阅读(70) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/ZHJ0125/p/12904471.html 只是在vmware里设置扩大磁盘空间这步操作还不够,需要在linux里去进一步扩展磁盘,网上很多用命令操作,比较麻烦,可以直接在linux里安装GParted这个软件,图形化操作 阅读全文
posted @ 2022-05-23 10:52 JayYin 阅读(36) 评论(0) 推荐(0) 编辑
摘要: https://alexandrerosseto.medium.com/vmware-linux-how-to-share-folder-between-host-and-vm-62e63419ecbb 有时候重启虚拟机后,vmware linux找不到共享文件夹,上面链接中给出了解决方法 阅读全文
posted @ 2022-05-22 16:04 JayYin 阅读(131) 评论(0) 推荐(0) 编辑
摘要: fortran对于浮点数异常默认是忽略的,如果要开启,有两种方法,一种可以通过调用c函数去开启这部分异常处理,并且需要将函数打包成库,链接到fortran中,另一个是通过编译选项设置。 第一种方法的代码: trapfpe.c /* * ref: * https://gcc.gnu.org/onlin 阅读全文
posted @ 2022-04-08 11:55 JayYin 阅读(792) 评论(0) 推荐(0) 编辑
摘要: 2022.5.31更新: 发现这是WSL 1特有的问题,遇到除0的情况,不会报错,只会直接终止程序,并且用文中提到的编译参数: gfortran -g main2.f90 -ffpe-trap=invalid,zero,overflow 也不会给出报错信息,导致无法排查错误。换成WSL 2,编译的时 阅读全文
posted @ 2022-04-06 22:31 JayYin 阅读(138) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/6e0bb488f3e3 阅读全文
posted @ 2022-01-03 15:13 JayYin 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 对于下面的程序,直接用gfortran test.f90,会有warning,宏也不能生效:test.f90 program main implicit none #if 0 write(*,*) "**********" #endif end program main 此时编译的时候添加参数-cp 阅读全文
posted @ 2021-10-05 15:46 JayYin 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 之前用WSL+vscode安装rust,发现用vscode打开项目以后再编译,就会出现一个奇怪的warning,经过尝试问题得到解决。需要注意以下几点: 1. 使用WSL2而不是WSL1; 2. 在WSL2的系统目录下创建项目,而不要在windows的盘符下创建项目; 按照这种方式编译运行,就不会出 阅读全文
posted @ 2021-09-12 17:36 JayYin 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1.在 ~/.zshrc 中加入:setopt no_nomatch 2.执行 source ~/.zshrc 参考https://blog.csdn.net/qq_36148847/article/details/79260745 阅读全文
posted @ 2021-08-30 20:09 JayYin 阅读(618) 评论(0) 推荐(0) 编辑
摘要: https://solidspoon.xyz/2021/02/17/%E9%85%8D%E7%BD%AEWSL2%E4%BD%BF%E7%94%A8Windows%E4%BB%A3%E7%90%86%E4%B8%8A%E7%BD%91/ 参考上面这个比较方便 除了用proxychains,还可以设置 阅读全文
posted @ 2021-08-06 21:04 JayYin 阅读(1085) 评论(0) 推荐(0) 编辑